Fixed static library compilation, using -fPIC now to allow linking
authorArmin Novak <anovak@thinstuff.com>
Fri, 30 Aug 2013 12:19:09 +0000 (14:19 +0200)
committerArmin Novak <anovak@thinstuff.com>
Thu, 5 Sep 2013 10:14:34 +0000 (12:14 +0200)
to dynamic lib.

winpr/tools/makecert/CMakeLists.txt

index c31d08c..22b0fb9 100644 (file)
@@ -27,6 +27,11 @@ include_directories(${OPENSSL_INCLUDE_DIR})
 
 add_library(${MODULE_NAME} STATIC ${${MODULE_PREFIX}_SRCS})
 
+# This line compiles the static libraries with -fPIC to allow linking
+# to shared libraries later on...
+# TODO: Remove this non portable way of linking.
+set_target_properties(${MODULE_NAME} PROPERTIES COMPILE_FLAGS "-fPIC") 
+
 set(${MODULE_PREFIX}_LIBS
        ${ZLIB_LIBRARIES}
        ${OPENSSL_LIBRARIES})