summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2006-08-02 03:04:42 +0300
committerSteve Peters <steve@fisharerojo.org>2006-08-02 03:11:51 +0000
commitb1e55cab83fc5b3a567d95fba8bca0592334b7a5 (patch)
tree7c22ca8f3f21e359c5ee8192f562cefb4f3dd3c1 /hints
parent8ea1447ce3e5b5d0a2695220018b2f9fdaf8f2e1 (diff)
downloadperl-b1e55cab83fc5b3a567d95fba8bca0592334b7a5.tar.gz
g++ heavy shoveling
Message-ID: <44CFC1EA.2050702@iki.fi> p4raw-id: //depot/perl@28645
Diffstat (limited to 'hints')
-rw-r--r--hints/linux.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/hints/linux.sh b/hints/linux.sh
index 98bdc9c939..f5c400b065 100644
--- a/hints/linux.sh
+++ b/hints/linux.sh
@@ -131,6 +131,7 @@ cat >try.c <<'EOM'
/* Test for whether ELF binaries are produced */
#include <fcntl.h>
#include <stdlib.h>
+#include <unistd.h>
main() {
char buffer[4];
int i=open("a.out",O_RDONLY);
@@ -352,3 +353,14 @@ $define|true|[yY]*)
libswanted="$*"
;;
esac
+
+# If we are using g++ we must use nm and force ourselves to use
+# the /usr/lib/libc.a (resetting the libc below to an empty string
+# makes Configure to look for the right one) because the symbol
+# scanning tricks of Configure will crash and burn horribly.
+case "$cc" in
+*g++*) usenm=true
+ libc=''
+ ;;
+esac
+