diff options
author | Stephen Zander <gibreel@pobox.com> | 1998-01-28 09:40:37 -0800 |
---|---|---|
committer | Malcolm Beattie <mbeattie@sable.ox.ac.uk> | 1998-02-06 16:35:41 +0000 |
commit | 1acf53c5de4d6d234e2d70be90a7503dee9a9c3d (patch) | |
tree | 285d15a771ad8afaad48b9705239e63b92caac5e /hints | |
parent | deb3007b1732b70253d84d2509424233377af1e9 (diff) | |
download | perl-1acf53c5de4d6d234e2d70be90a7503dee9a9c3d.tar.gz |
Re: [PATCH] new hints/solaris2.sh (was Re: make check fails 17% of it's tests on Solaris...)
p4raw-id: //depot/perl@472
Diffstat (limited to 'hints')
-rw-r--r-- | hints/solaris_2.sh | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index 21593f132f..6b24dd1ef2 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -123,17 +123,18 @@ rm -f make.vers # - check as(1) and ld(1), they should not be GNU # # Watch out in case they have not set $cc. -case "`${cc:-cc} -v 2>&1`" in -*gcc*) + +# Get gcc to share its secrets. +echo 'main() { return 0; }' > try.c +verbose=`${cc:-cc} -v -o try try.c 2>&1` +rm -f try try.c + +if echo "$verbose" | grep '^Reading specs from' >/dev/null 2>&1; then # # Using gcc. # #echo Using gcc - # Get gcc to share its secrets. - echo 'main() { return 0; }' > try.c - verbose=`${cc:-cc} -v -o try try.c 2>&1` - rm -f try try.c tmp=`echo "$verbose" | grep '^Reading' | awk '{print $NF}' | sed 's/specs$/include/'` @@ -141,36 +142,36 @@ case "`${cc:-cc} -v 2>&1`" in # Doesn't work anymore for gcc-2.7.2. # See if as(1) is GNU as(1). GNU as(1) won't work for this job. - case $verbose in - */usr/ccs/bin/as*) ;; - *) + if echo "$verbose" | grep ' /usr/ccs/bin/as ' >/dev/null 2>&1; then + : + else cat <<END >&2 NOTE: You are using GNU as(1). GNU as(1) will not build Perl. -You must arrange to use /usr/ccs/bin/as, perhaps by setting -GCC_EXEC_PREFIX or by including -B/usr/ccs/bin/ in your cc command. +I'm arranging to use /usr/ccs/bin/as by setting including +-B/usr/ccs/bin/ in your ${cc:-cc} command. (Note that the trailing "/" is required.) END - ;; - esac + cc="${cc:-cc} -B/usr/ccs/bin/" + fi # See if ld(1) is GNU ld(1). GNU ld(1) won't work for this job. - case $verbose in - */usr/ccs/bin/ld*) ;; - *) + if echo "$verbose" | grep ' /usr/ccs/bin/as ' >/dev/null 2>&1; then + : + else cat <<END >&2 -NOTE: You are using GNU ld(1). GNU ld(1) will not build Perl. -You must arrange to use /usr/ccs/bin/ld, perhaps by setting -GCC_EXEC_PREFIX or by including -B/usr/ccs/bin/ in your cc command. +NOTE: You are using GNU as(1). GNU as(1) will not build Perl. +I'm arranging to use /usr/ccs/bin/as by setting including +-B/usr/ccs/bin/ in your ${cc:-cc} command. +(Note that the trailing "/" is required.) END - ;; - esac + cc="${cc:-cc} -B/usr/ccs/bin/" + fi - ;; #using gcc -*) +else # # Not using gcc. # @@ -217,8 +218,7 @@ beginning of your PATH. END fi - ;; #not using gcc -esac +fi # as --version or ld --version might dump core. rm -f core |