diff options
author | Jeremy Blosser | 2006-04-24 23:39:08 -0500 |
---|---|---|
committer | Jeremy Blosser | 2006-04-24 23:39:08 -0500 |
commit | e860eecc92bd2ac10566e624d348139fc924d3dc (patch) | |
tree | 3f96b717f2be8b96c8a829d7cc8ade71daf290bb /FUNCTIONS | |
parent | c6437ac4d8f7dff71f957652ae3bdbe85e0688c5 (diff) |
sync ./FUNCTIONS from test
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-x | FUNCTIONS | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -1,5 +1,6 @@ . $GRIMOIRE/libaccount . $GRIMOIRE/libgcc +. $GRIMOIRE/config_query_multi.function #--------------------------------------------------------------------- ## Replaces sorcerys default_build with a custom version using @@ -399,3 +400,21 @@ function default_build_python() { function default_install_python() { python setup.py install ${INSTALL_ROOT:+--root "$INSTALL_ROOT/"} } + + +#--- +## disable_pic +## A function to smartly disable -DPIC and -fPIC flags +## has one optional parameter: force which forces disable +#--- + +disable_pic() { +if [[ "$SMGL_COMPAT_ARCHS[1]" != "x86_64" ]] || + [[ "$1" == "force" ]] +then +CFLAGS=${CFLAGS/-fPIC} && +CFLAGS=${CFLAGS/-DPIC} && +CXXFLAGS=${CXXFLAGS/-fPIC} && +CXXFLAGS=${CXXFLAGS/-DPIC} +fi +} |