]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #202 in SNORT/snort3 from ~JOCORNET/snort3:fix_cmake_build to...
authorRuss Combs (rucombs) <rucombs@cisco.com>
Mon, 11 Jan 2016 18:29:50 +0000 (13:29 -0500)
committerRuss Combs (rucombs) <rucombs@cisco.com>
Mon, 11 Jan 2016 18:29:50 +0000 (13:29 -0500)
Squashed commit of the following:

commit 0cb5a1a6e3169cfd68293a044a071fa2499717fb
Author: Joel Cornett <joel.cornett@gmail.com>
Date:   Mon Jan 11 12:11:41 2016 -0500

    initial

cmake/compiler_features.cmake

index 84466f0e7e8c31b0ad44e9ab0ef9e7f4dff1234a..f136fdc900c57e146f5e6eac6e275dccc33fa72e 100644 (file)
@@ -1,4 +1,5 @@
-set ( CMAKE_REQUIRED_FLAGS "-std=c++11 -shared -Wl,-undefined,dynamic_lookup" )
+set ( _SAVE_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} )
+set ( CMAKE_REQUIRED_FLAGS "-std=c++11 -fPIC -shared -Wl,-undefined,dynamic_lookup" )
 
 unset ( HAVE_EXTERN_GNU_TLS )
 check_cxx_source_compiles (
@@ -23,3 +24,5 @@ if ( NOT HAVE_EXTERN_GNU_TLS )
         )
     endif ( HAVE_THREAD_LOCAL )
 endif ( NOT HAVE_EXTERN_GNU_TLS )
+
+set ( CMAKE_REQUIRED_FLAGS ${_SAVE_CMAKE_REQUIRED_FLAGS} )