diff options
author | Ian Lance Taylor <ian@airs.com> | 2011-07-02 00:31:35 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2011-07-02 00:31:35 +0000 |
commit | dd7af0746398caad45ce0c78316c501029e257ac (patch) | |
tree | 208c8ec8f1a723b9de8ab30466f3412da3127e2b /gold/configure.ac | |
parent | 328c7c2f681aeea5792099d68349c440a5a3d663 (diff) | |
download | gdb-dd7af0746398caad45ce0c78316c501029e257ac.zip gdb-dd7af0746398caad45ce0c78316c501029e257ac.tar.gz gdb-dd7af0746398caad45ce0c78316c501029e257ac.tar.bz2 |
Correct last commit.
Diffstat (limited to 'gold/configure.ac')
-rw-r--r-- | gold/configure.ac | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gold/configure.ac b/gold/configure.ac index 47120b4..949c8c3 100644 --- a/gold/configure.ac +++ b/gold/configure.ac @@ -265,11 +265,12 @@ dnl Test for whether static linking is supported. Some systems do not dnl install static libraries. This only affects the set of tests that dnl we run. AC_CACHE_CHECK([whether static linking works], [gold_cv_lib_static], -LDFLAGS_hold=$LDFLAGS +[LDFLAGS_hold=$LDFLAGS LDFLAGS="$LDFLAGS -static" -[AC_LINK_IFELSE([ +AC_LINK_IFELSE([ AC_LANG_PROGRAM([[void f() { }]])], -[gold_cv_lib_static=yes], [gold_cv_lib_static=no])]) +[gold_cv_lib_static=yes], [gold_cv_lib_static=no]) +LDFLAGS=$LDFLAGS_hold]) AM_CONDITIONAL(HAVE_STATIC, test "$gold_cv_lib_static" = "yes") dnl Some architectures do not support taking pointers of functions |