]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
Make libs static with -fPIC
authorTimePath <andrew.hardaker1995@gmail.com>
Wed, 29 Jul 2015 08:50:58 +0000 (18:50 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Wed, 29 Jul 2015 08:50:58 +0000 (18:50 +1000)
22 files changed:
libs/CMakeLists.txt
libs/cmdlib/CMakeLists.txt
libs/container/CMakeLists.txt
libs/ddslib/CMakeLists.txt
libs/debugging/CMakeLists.txt
libs/generic/CMakeLists.txt
libs/gtkutil/CMakeLists.txt
libs/l_net/CMakeLists.txt
libs/math/CMakeLists.txt
libs/mathlib/CMakeLists.txt
libs/md5lib/CMakeLists.txt
libs/memory/CMakeLists.txt
libs/modulesystem/CMakeLists.txt
libs/os/CMakeLists.txt
libs/picomodel/CMakeLists.txt
libs/profile/CMakeLists.txt
libs/script/CMakeLists.txt
libs/signal/CMakeLists.txt
libs/splines/CMakeLists.txt
libs/stream/CMakeLists.txt
libs/string/CMakeLists.txt
libs/xml/CMakeLists.txt

index be4d0a7e4fcb3d7c9a629003eb800e6293ada103..5db20f38e54abdf6ae169f56ac2359d7539b3b9e 100644 (file)
@@ -1,3 +1,5 @@
+set(CMAKE_POSITION_INDEPENDENT_CODE 1)
+
 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
 include_directories("${CMAKE_SOURCE_DIR}/include")
 
@@ -28,12 +30,12 @@ add_subdirectory(stream)
 add_subdirectory(string)
 add_subdirectory(xml)
 
-add_library(etclib SHARED
+add_library(etclib
     etclib.c
     etclib.h
 )
 
-add_library(filematch SHARED
+add_library(filematch
     filematch.c
     filematch.h
 )
index b37587b63828b6e17e5cada191e5e441c69fded3..4c2be6426e94f53f3fa407aa4dd8a3e7ab34dcb1 100644 (file)
@@ -1,4 +1,3 @@
-
-add_library(cmdlib SHARED
+add_library(cmdlib
     cmdlib.cpp
 )
index 0159daa3d99a60527672395d9860861aab1c1eb0..2e1984c2e8370018381ca98f13bc80a1aad9d33d 100644 (file)
@@ -1,4 +1,4 @@
-add_library(container SHARED
+add_library(container
     array.cpp
     array.h
     cache.cpp
index 9a6954312bf00a6f414ce91de565345d23607dbc..e195c84b1b383015db7d238ded88e085896cbd0a 100644 (file)
@@ -1,4 +1,3 @@
-
-add_library(ddslib SHARED
+add_library(ddslib
     ddslib.c
 )
index 6209d6578970ecd2f90d81290226f9d5a6f9ebf3..f178adbb377505f0fd76d061530b5ed2189e13a5 100644 (file)
@@ -1,5 +1,4 @@
-
-add_library(debugging SHARED
+add_library(debugging
     debugging.cpp
     debugging.h
 )
index 172515dbe7d8d1f80961e70784220ae280450684..2cae298fcfa77d2d6f77952d4382d33a9acc14c7 100644 (file)
@@ -1,5 +1,4 @@
-
-add_library(generic SHARED
+add_library(generic
     arrayrange.cpp
     arrayrange.h
     bitfield.cpp
index 3356c061e8fe4543282ab0440219a0a3c916d2bf..14cf6e04858dadcc88630811de526796336b44cc 100644 (file)
@@ -1,5 +1,4 @@
-
-add_library(gtkutil SHARED
+add_library(gtkutil
     accelerator.cpp
     accelerator.h
     button.cpp
index 1e7f25789f24f458d69ed6f743ce229f41859604..2d8169e00ebaf65ffd300e0735a3041db86586f0 100644 (file)
@@ -1,4 +1,3 @@
-
 set(L_NETLIST
     l_net.c
     l_net.h
@@ -8,7 +7,7 @@ if(WIN32)
 else()
     set(L_NETLIST ${L_NETLIST} l_net_berkley.c)
 endif()
-add_library(l_net SHARED ${L_NETLIST})
+add_library(l_net ${L_NETLIST})
 if(WIN32)
     target_link_libraries(l_net ws2_32)
 endif()
index d7b3b3d0e161c9b8cff89579e1d817fa2e635218..4fed0ef86300f8c1e05cc7204dffef848461816e 100644 (file)
@@ -1,5 +1,4 @@
-
-add_library(math SHARED
+add_library(math
    aabb.cpp
    aabb.h
    curve.cpp
index 9d33ceae762eb8056b019a3bec6720f0d568379c..ca8387d217be2700f05fb083fe0a0a44760bef17 100644 (file)
@@ -1,5 +1,4 @@
-
-add_library(mathlib SHARED
+add_library(mathlib
     bbox.c
     line.c
     m4x4.c
index fe79afedec0f83b8978b817af5c5251dbb9db5ea..b8948dc676877cfb7c52993d84b73f8dd33bb930 100644 (file)
@@ -1,4 +1,3 @@
-
-add_library(md5lib SHARED
+add_library(md5lib
     md5lib.c
 )
index 8fd5f330c2465a2384a88769d9ef5b1accc6377e..22b0fa6bdb9f1049e24bdd587a2010158471eb90 100644 (file)
@@ -1,5 +1,4 @@
-
-add_library(memory SHARED
+add_library(memory
     allocator.cpp
     allocator.h
 )
index 17cd658535707527a028114477aa24929d3392b2..57722a4813f37495881408cb4de665648cfeda2e 100644 (file)
@@ -1,5 +1,4 @@
-
-add_library(modulesystem SHARED
+add_library(modulesystem
     moduleregistry.cpp
     moduleregistry.h
     modulesmap.cpp
index 0c8c27a903f673f7ff404b4669fbd62e70d0ce15..274634192bbbc2e0f1947a6e7191cf0cfe3c881a 100644 (file)
@@ -1,5 +1,4 @@
-
-add_library(os SHARED
+add_library(os
     dir.cpp
     dir.h
     file.cpp
index f54f81351f3772166b70a768510beab92ad848e1..52764e11b37d5ca8e007a1209a806b922f126fb0 100644 (file)
@@ -1,5 +1,4 @@
-
-add_library(picomodel SHARED
+add_library(picomodel
     lwo/clip.c
     lwo/envelope.c
     lwo/list.c
index bc5882c5156bbfeb6d12f752b3fbd1e896b43efa..799c568a30bb478ec5942ef560df93ebd11e049d 100644 (file)
@@ -1,5 +1,4 @@
-
-add_library(profile SHARED
+add_library(profile
     file.cpp
     file.h
     profile.cpp
index 42c50cb88cf301a2636d1ef301dba799171f2aa6..e6dde8b253533c584475e24d5b0fa34fc101a56c 100644 (file)
@@ -1,5 +1,4 @@
-
-add_library(script SHARED
+add_library(script
     scripttokeniser.cpp
     scripttokeniser.h
     scripttokenwriter.cpp
index 8d02334778d4ee9dac5b02817c58404605489846..26d0ecb70a8a91b44bdb9213418a2283f03faaf0 100644 (file)
@@ -1,5 +1,4 @@
-
-add_library(signal SHARED
+add_library(signal
     isignal.cpp
     isignal.h
     signal.cpp
index 7c070cbbc53cfc9e13501331a88de8dd50c842a7..9b942704898a4be6a0193a0285af9caaa1eff1eb 100644 (file)
@@ -1,5 +1,4 @@
-
-add_library(splines SHARED
+add_library(splines
     math_angles.cpp
     math_angles.h
     math_matrix.cpp
index 945f288703131b4d25456e898739374f2072cebd..daf02495fef6551c5dc450f8a692a124cf9d0f90 100644 (file)
@@ -1,5 +1,4 @@
-
-add_library(stream SHARED
+add_library(stream
     filestream.cpp
     filestream.h
     memstream.cpp
index 0f569222e97b9c48844a0026207b2abfff687535..ca497230e3c4b318b6098c6dcfe063abcf9eb3f0 100644 (file)
@@ -1,5 +1,4 @@
-
-add_library(string SHARED
+add_library(string
     pooledstring.cpp
     pooledstring.h
     string.h
index 4de0de07c11c5eac9e19dd1076e597d0aeab2c91..7c01ac150bbb1ec4492cf98aaa77f291461dc966 100644 (file)
@@ -1,8 +1,7 @@
-
 find_package(LibXml2 REQUIRED)
 include_directories(${LIBXML2_INCLUDE_DIR})
 
-add_library(xmllib SHARED
+add_library(xmllib
     ixml.cpp
     ixml.h
     xmlelement.cpp