This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Relocations errors with Intel CC 10 on 64 bits archs
authorVincent Pit <perl@profvince.com>
Tue, 11 Nov 2008 15:58:07 +0000 (16:58 +0100)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 11 Nov 2008 15:55:28 +0000 (15:55 +0000)
Message-ID: <49199D7F.7030304@profvince.com>

p4raw-id: //depot/perl@34815

hints/linux.sh

index b254310..a240f9a 100644 (file)
@@ -91,6 +91,12 @@ case "`${cc:-cc} -V 2>&1`" in
     # The -mp flag is needed to pass various floating point related tests
     # The -no-gcc flag is needed otherwise, icc pretends (poorly) to be gcc
     ccflags="-we147 -mp -no-gcc $ccflags"
+    # Prevent relocation errors on 64bits arch
+    case "`uname -m`" in
+       *ia64*|*x86_64*)
+           cccdlflags='-fPIC'
+       ;;
+    esac
     # If we're using ICC, we usually want the best performance
     case "$optimize" in
     '') optimize='-O3' ;;