Skip to content

Commit

Permalink
configure: add icpc and ifort to list of compilers supporting -fPIC
Browse files Browse the repository at this point in the history
  • Loading branch information
jhyeon committed Mar 20, 2014
1 parent 33ef5ad commit f021155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit f021155

Please sign in to comment.