This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Changes for hints/linux.sh for Purify
[perl5.git] / hints / linux.sh
index 2ed31db..5c7e535 100644 (file)
@@ -75,7 +75,7 @@ esac
 
 # Check if we're about to use Intel's ICC compiler
 case "`${cc:-cc} -V 2>&1`" in
-*"Intel(R) C++ Compiler"*)
+*"Intel(R) C++ Compiler"*|*"Intel(R) C Compiler"*)
     # This is needed for Configure's prototype checks to work correctly
     ccflags="-we147 $ccflags"
     # If we're using ICC, we usually want the best performance
@@ -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