[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

[PATCH] icc wants -fPIC on x86_64



Well, at least it wants it here (version 10.1), or it croaks with
relocations errors of the like of :

     ld: Zlib.o: relocation R_X86_64_32 against `a local symbol' can not
be used when making a shared object; recompile with -fPIC

With the attached patch (against blead), blead and maint-5.8@34364 build
and test fine.

Vincent.
--- hints/linux.sh	2008-07-29 18:20:18.000000000 +0200
+++ hints/linux.sh	2008-09-15 17:44:38.000000000 +0200
@@ -95,6 +95,10 @@
     case "$optimize" in
     '') optimize='-O3' ;;
     esac
+    # icc on x86_64 seems to need -fPIC
+    case "`uname -m`" in
+    x86_64*) cccdlflags="-fPIC $cccdlflags"
+    esac
     ;;
 *"Sun C"*)
     test "$optimize" || optimize='-xO2'

Follow-Ups from:
Nicholas Clark <nick@ccl4.org>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]