From 3b101b6af825d6e358564c1b090bb4ff2d2a2143 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 31 Aug 2016 17:48:17 -0500 Subject: [PATCH] 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. --- cmake/setup_compiler_flags_gnu.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5