From f021155ca3c53f6c0f4af8004efae05c24bde7ce Mon Sep 17 00:00:00 2001 From: Jae-hyeon Park Date: Thu, 20 Mar 2014 11:53:49 +0100 Subject: [PATCH] configure: add icpc and ifort to list of compilers supporting -fPIC See: http://software.intel.com/en-us/node/460394 http://software.intel.com/en-us/node/464148 --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index b3fc97ef7..79d60e6dc 100755 --- a/configure +++ b/configure @@ -1003,7 +1003,7 @@ check_cxxflags() { if test "x$enable_static_libs" = "xno" ; then # check if -fPIC is in CXXFLAGS case "${CXX}" in - g++*|clang++*) + g++*|clang++*|icpc*) if contains_not "${CXXFLAGS}" "-fPIC" ; then message " Warning: could not find -fPIC in CXXFLAGS, appending it" CXXFLAGS="${CXXFLAGS} -fPIC" @@ -1094,7 +1094,7 @@ check_fflags() { if test "x$enable_static_libs" = "xno" ; then # check if -fPIC is in FFLAGS case "${FC}" in - gfortran*) + gfortran*|ifort*) if contains_not "${FFLAGS}" "-fPIC" ; then message " Warning: could not find -fPIC in FFLAGS, appending it" FFLAGS="${FFLAGS} -fPIC"