diff options
author | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-01-01 13:22:57 +0100 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <awg@embtoolkit.org> | 2013-01-01 13:31:53 +0100 |
commit | 40ab4b2b76189804cbf3f778cbe936ca9466fa2c (patch) | |
tree | 73ede68090e94c3fc7acc618d10231ec6e34d3e5 /configure | |
parent | f9fe35dbf1b5c37d7ced0e7ea35c13de16b9e9e3 (diff) | |
download | llvm-40ab4b2b76189804cbf3f778cbe936ca9466fa2c.tar.gz llvm-40ab4b2b76189804cbf3f778cbe936ca9466fa2c.tar.bz2 llvm-40ab4b2b76189804cbf3f778cbe936ca9466fa2c.tar.xz |
[Embtk] Give ability to specify default linker hash-style
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 31 |
1 files changed, 30 insertions, 1 deletions
@@ -1446,6 +1446,9 @@ Optional Packages: invocations. --with-default-fpu Default FPU to use to all compiler invocations, in case of hard float. + --with-default-hash-style + Default hash-style to use to all linker invocations: + gnu, sysv or both. --with-optimize-option Select the compiler options to use for optimized builds --with-extra-options Specify additional options to compile LLVM with @@ -4012,6 +4015,32 @@ _ACEOF fi +# Check whether --with-default-hash-style was given. +if test "${with_default_hash_style+set}" = set; then + withval=$with_default_hash_style; +else + withval="Unknown" +fi + + +if test "$withval" != "Unknown" ; then + case "$withval" in + gnu);; + sysv);; + both);; + *) + { { echo "$as_me:$LINENO: error: Invalid --with-default-hash-style. Use \"sysv\", \"gnu\" or \"both\"" >&5 +echo "$as_me: error: Invalid --with-default-hash-style. Use \"sysv\", \"gnu\" or \"both\"" >&2;} + { (exit 1); exit 1; }; };; + esac + +cat >>confdefs.h <<_ACEOF +#define DEFAULT_TARGET_HASHSTYLE "$withval" +_ACEOF + +fi + + { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } @@ -10373,7 +10402,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF -#line 10376 "configure" +#line 10405 "configure" #include "confdefs.h" #if HAVE_DLFCN_H |