Changes for hints/linux.sh for Purify
authorSteve Peters <steve@fisharerojo.org>
Fri, 23 Sep 2005 08:38:58 +0000 (03:38 -0500)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Fri, 23 Sep 2005 13:49:24 +0000 (13:49 +0000)
Message-ID: <20050923133858.GA29475@mccoy.peters.homeunix.org>

p4raw-id: //depot/perl@25582

hints/linux.sh

index 49aeae8..5c7e535 100644 (file)
@@ -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