From: Vincent Pit Date: Tue, 11 Nov 2008 15:58:07 +0000 (+0100) Subject: Relocations errors with Intel CC 10 on 64 bits archs X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=95960e9d32db6ab0a2dadc6f50a4298263f7545f;hp=b78893c9935e40731b0134c5996886a293086d32;p=p5sagit%2Fp5-mst-13.2.git Relocations errors with Intel CC 10 on 64 bits archs Message-ID: <49199D7F.7030304@profvince.com> p4raw-id: //depot/perl@34815 --- diff --git a/hints/linux.sh b/hints/linux.sh index b254310..a240f9a 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' ;;