From: Matthias Maier Date: Wed, 31 Aug 2016 22:48:17 +0000 (-0500) Subject: CMake: Use -fPIC instead of -fpic X-Git-Tag: v8.5.0-rc1~719^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b101b6af825d6e358564c1b090bb4ff2d2a2143;p=dealii.git CMake: Use -fPIC instead of -fpic This resolves a build failure on architectures that differentiate between -fpic and -fPIC. Special thanks to Matthias Klose and Graham Inggs. --- diff --git a/cmake/setup_compiler_flags_gnu.cmake b/cmake/setup_compiler_flags_gnu.cmake index 4cccd53561..cc75241650 100644 --- a/cmake/setup_compiler_flags_gnu.cmake +++ b/cmake/setup_compiler_flags_gnu.cmake @@ -46,7 +46,7 @@ ENDIF() # # Set the pic flag. # -ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-fpic") +ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-fPIC") # # Check whether the -as-needed flag is available. If so set it to link