From: Matthias Maier Date: Wed, 31 Aug 2016 22:48:17 +0000 (-0500) Subject: CMake: Use -fPIC instead of -fpic X-Git-Tag: v8.4.2-rc1~4^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c23f6220d0a702a833ab0ca4184286d1be0e6777;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