Purify's ld is much more picky regarding duplicate symbols than the 
GNU ld.  It automatically includes libc by default.  Configure,
however, includes a "-lc" when linking, causing the link to fail.
The following patch deals with the duplicate symbols by removing
libc from the libraries that Configure will probe for when it is
run with a -DPURIFY argument.

Steve Peters
[EMAIL PROTECTED]

--- hints/linux.sh.old  2005-08-18 09:17:47.000000000 -0500
+++ hints/linux.sh      2005-09-23 08:38:08.000000000 -0500
@@ -315,3 +315,13 @@
        ;;
 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

Reply via email to