From c23f6220d0a702a833ab0ca4184286d1be0e6777 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