diff options
author | Stefan Radomski <github@mintwerk.de> | 2016-05-12 19:16:31 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2016-05-12 19:16:31 (GMT) |
commit | 3cfb5df8f3b0571a529d05e51218eb9f4fdc1930 (patch) | |
tree | b4bf3efed6af75d6e65b3f909a60752f3e0a0fb3 /contrib | |
parent | adbae7680e89795041cbfff32768d15683416f1b (diff) | |
download | uscxml-3cfb5df8f3b0571a529d05e51218eb9f4fdc1930.zip uscxml-3cfb5df8f3b0571a529d05e51218eb9f4fdc1930.tar.gz uscxml-3cfb5df8f3b0571a529d05e51218eb9f4fdc1930.tar.bz2 |
Compile all dependencies with position independent code
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/cmake/BuildLibCurl.cmake | 5 | ||||
-rw-r--r-- | contrib/cmake/BuildLibEvent.cmake | 5 | ||||
-rw-r--r-- | contrib/cmake/BuildURIParser.cmake | 1 | ||||
-rw-r--r-- | contrib/cmake/BuildXercesC.cmake | 1 |
4 files changed, 6 insertions, 6 deletions
diff --git a/contrib/cmake/BuildLibCurl.cmake b/contrib/cmake/BuildLibCurl.cmake index 2753ee6..8f0a030 100644 --- a/contrib/cmake/BuildLibCurl.cmake +++ b/contrib/cmake/BuildLibCurl.cmake @@ -10,6 +10,7 @@ if (UNIX) CONFIGURE_COMMAND "<SOURCE_DIR>/configure" "--without-ssl" + "--enable-shared" "--prefix=<INSTALL_DIR>" ) elseif (WIN32) @@ -64,9 +65,9 @@ endif() set(LIBCURL_INCLUDE_DIR ${CMAKE_BINARY_DIR}/deps/libcurl/include) if (APPLE) - set(LIBCURL_LIBRARY ${CMAKE_BINARY_DIR}/deps/libcurl/lib/libcurl.dylib) + set(LIBCURL_LIBRARY ${CMAKE_BINARY_DIR}/deps/libcurl/lib/libcurl.a) elseif(UNIX) - set(LIBCURL_LIBRARY ${CMAKE_BINARY_DIR}/deps/libcurl/lib/libcurl.so) + set(LIBCURL_LIBRARY ${CMAKE_BINARY_DIR}/deps/libcurl/lib/libcurl.a) elseif(WIN32) set(LIBCURL_LIBRARY ${CMAKE_BINARY_DIR}/deps/libcurl/lib/libcurl_a.lib) else() diff --git a/contrib/cmake/BuildLibEvent.cmake b/contrib/cmake/BuildLibEvent.cmake index d9bfa5d..98ea99e 100644 --- a/contrib/cmake/BuildLibEvent.cmake +++ b/contrib/cmake/BuildLibEvent.cmake @@ -9,10 +9,7 @@ if (UNIX) BUILD_IN_SOURCE 0 PREFIX ${CMAKE_BINARY_DIR}/deps/libevent CONFIGURE_COMMAND - "<SOURCE_DIR>/configure" - "--enable-static" - "--disable-openssl" - "--prefix=<INSTALL_DIR>" + CFLAGS=-fPIC <SOURCE_DIR>/configure --enable-static --enable-shared --disable-openssl --prefix=<INSTALL_DIR> ) elseif (WIN32) diff --git a/contrib/cmake/BuildURIParser.cmake b/contrib/cmake/BuildURIParser.cmake index c204eed..d48916d 100644 --- a/contrib/cmake/BuildURIParser.cmake +++ b/contrib/cmake/BuildURIParser.cmake @@ -6,6 +6,7 @@ if (UNIX) BUILD_IN_SOURCE 0 PREFIX ${CMAKE_BINARY_DIR}/deps/uriparser CONFIGURE_COMMAND + "CFLAGS=-fPIC" "<SOURCE_DIR>/configure" "--disable-test" "--disable-doc" diff --git a/contrib/cmake/BuildXercesC.cmake b/contrib/cmake/BuildXercesC.cmake index a0d6bc9..0e3353c 100644 --- a/contrib/cmake/BuildXercesC.cmake +++ b/contrib/cmake/BuildXercesC.cmake @@ -11,6 +11,7 @@ if (UNIX) CONFIGURE_COMMAND "<SOURCE_DIR>/configure" "--enable-static" + "--enable-shared" "--prefix=<INSTALL_DIR>" ) elseif(WIN32) |