summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hints/linux.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/hints/linux.sh b/hints/linux.sh
index 49aeae8b3e..5c7e535e90 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