aboutsummaryrefslogtreecommitdiff
path: root/gold/configure.ac
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-02 22:45:07 +0000
committerIan Lance Taylor <iant@google.com>2007-10-02 22:45:07 +0000
commit63402fe413c09effa7813a70a5943dddec1456bf (patch)
tree2f442ff95f61ee3a3f8f6be87c052962f0bdef85 /gold/configure.ac
parente84992bbac6f16ec51ed0ad03db26b403c2b05e0 (diff)
downloadfsf-binutils-gdb-63402fe413c09effa7813a70a5943dddec1456bf.zip
fsf-binutils-gdb-63402fe413c09effa7813a70a5943dddec1456bf.tar.gz
fsf-binutils-gdb-63402fe413c09effa7813a70a5943dddec1456bf.tar.bz2
From Craig Silverstein: don't run function pointer non-PIC tests when
they won't work.
Diffstat (limited to 'gold/configure.ac')
-rw-r--r--gold/configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/gold/configure.ac b/gold/configure.ac
index 500568e..4efe83d 100644
--- a/gold/configure.ac
+++ b/gold/configure.ac
@@ -112,6 +112,17 @@ AM_CONDITIONAL(NATIVE_LINKER,
test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias")
AM_CONDITIONAL(GCC, test "$GCC" = yes)
+dnl Some architectures do not support taking pointers of functions
+dnl defined in shared libraries except in -fPIC mode. We need to
+dnl tell the unittest framework if we're compiling for one of those
+dnl targets, so it doesn't try to run the tests that do that.
+AM_CONDITIONAL(FN_PTRS_IN_SO_WITHOUT_PIC, [
+ case $target_cpu in
+ i?86) true;;
+ x86_64) false;;
+ *) true;;
+ esac])
+
AM_BINUTILS_WARNINGS
WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//'`