diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2006-08-02 03:04:42 +0300 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2006-08-02 03:11:51 +0000 |
commit | b1e55cab83fc5b3a567d95fba8bca0592334b7a5 (patch) | |
tree | 7c22ca8f3f21e359c5ee8192f562cefb4f3dd3c1 /hints | |
parent | 8ea1447ce3e5b5d0a2695220018b2f9fdaf8f2e1 (diff) | |
download | perl-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.sh | 12 |
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 + |