]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Use -fPIC instead of -fpic 3045/head
authorMatthias Maier <tamiko@43-1.org>
Wed, 31 Aug 2016 22:48:17 +0000 (17:48 -0500)
committerMatthias Maier <tamiko@43-1.org>
Wed, 31 Aug 2016 23:01:40 +0000 (18:01 -0500)
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

index 4cccd5356122ea8c85c7fcde3da6387719393712..cc752416507c7e33a5708846f4de40a89d0fc0d9 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.