From: Steve Peters Date: Fri, 23 Sep 2005 08:38:58 +0000 (-0500) Subject: Changes for hints/linux.sh for Purify X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3fe280b74970c9b125752060fd031caf0b20f4e9;p=p5sagit%2Fp5-mst-13.2.git Changes for hints/linux.sh for Purify Message-ID: <20050923133858.GA29475@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@25582 --- diff --git a/hints/linux.sh b/hints/linux.sh index 49aeae8..5c7e535 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -315,3 +315,13 @@ ccflags_uselargefiles="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" ;; esac EOCBU + +# Purify fails to link Perl if a "-lc" is passed into its linker +# due to duplicate symbols. +case "$PURIFY" in +$define|true|[yY]*) + set `echo X "$libswanted "| sed -e 's/ c / /'` + shift + libswanted="$*" + ;; +esac