diff --git a/configure b/configure index 3d54ead0..b4f11685 100755 --- a/configure +++ b/configure @@ -3334,7 +3334,7 @@ echo "include_mpn(\`ia64/ia64-defs.m4')" >> $gmp_tmpconfigm4i case $host in *-*-linux*) cclist="gcc icc" - icc_cflags="-no-gcc" + icc_cflags="-no-gcc -fpic" icc_cflags_optlist="opt" # FIXME: Check if -O3 is really right. The manual warns it is for # large data sets, for which GMP uses assembly loops. diff --git a/configure.in b/configure.in index f65d911a..fa4670d7 100644 --- a/configure.in +++ b/configure.in @@ -676,7 +676,7 @@ case $host in case $host in *-*-linux*) cclist="gcc icc" - icc_cflags="-no-gcc" + icc_cflags="-no-gcc -fpic" icc_cflags_optlist="opt" # FIXME: Check if -O3 is really right. The manual warns it is for # large data sets, for which GMP uses assembly loops.