diff options
author | Vincent Pit <perl@profvince.com> | 2008-11-11 16:58:07 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-11-11 15:55:28 +0000 |
commit | 95960e9d32db6ab0a2dadc6f50a4298263f7545f (patch) | |
tree | 236fdbebf7231ae55316a1d4ffb0a2809386fd2e /hints | |
parent | b78893c9935e40731b0134c5996886a293086d32 (diff) | |
download | perl-95960e9d32db6ab0a2dadc6f50a4298263f7545f.tar.gz |
Relocations errors with Intel CC 10 on 64 bits archs
Message-ID: <49199D7F.7030304@profvince.com>
p4raw-id: //depot/perl@34815
Diffstat (limited to 'hints')
-rw-r--r-- | hints/linux.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hints/linux.sh b/hints/linux.sh index b254310539..a240f9a458 100644 --- a/hints/linux.sh +++ b/hints/linux.sh @@ -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' ;; |