Fixing compilation with -DBUILD_SHARED_LIBS=ON
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>
Thu, 21 May 2020 01:08:39 +0000 (04:08 +0300)
committerThomas Debesse <dev@illwieckz.net>
Thu, 21 May 2020 09:25:14 +0000 (11:25 +0200)
Libraries under libs should be forced STATIC since there circular
dependencies and implicit linking with external libraries. Otherwise
compilation will fails with underlinking errors.

24 files changed:
libs/cmdlib/CMakeLists.txt
libs/container/CMakeLists.txt
libs/crnrgba/CMakeLists.txt
libs/ddslib/CMakeLists.txt
libs/debugging/CMakeLists.txt
libs/etclib/CMakeLists.txt
libs/filematch/CMakeLists.txt
libs/generic/CMakeLists.txt
libs/gtkutil/CMakeLists.txt
libs/l_net/CMakeLists.txt
libs/math/CMakeLists.txt
libs/mathlib/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/uilib/CMakeLists.txt
libs/xml/CMakeLists.txt

index 5d25ce82844a50f02b4b9b595c238525f2fab428..b8c48b0112bc541fc5cd06180a59574eb8236afa 100644 (file)
@@ -1,3 +1,3 @@
-add_library(cmdlib
+add_library(cmdlib STATIC
         cmdlib.cpp ../cmdlib.h
         )
index 00bfbb4a6bc14bf96fef5744432409da6ae54dee..028129ba4b5bdaf21f94147a21ee6278ba523fd2 100644 (file)
@@ -1,4 +1,4 @@
-add_library(container
+add_library(container STATIC
         array.cpp array.h
         cache.h
         container.h
index 6e8463dc6668f0a326a4c2fb76b5dc847d2e31e3..a5ec18e3ff7b24be50eea30efddb756b3023c8d1 100644 (file)
@@ -1,4 +1,4 @@
-add_library(crnrgba
+add_library(crnrgba STATIC
         crn_rgba.h
         crn_rgba.cpp
         ../crunch/inc/crn_decomp.h
index d4de1a7c80b859004577c85b28659b4cdc518a8c..a45ccc7f232151fab0acac7cd96c5fb0d8535e66 100644 (file)
@@ -1,3 +1,3 @@
-add_library(ddslib
+add_library(ddslib STATIC
         ddslib.c ../ddslib.h
         )
index e5880de39e33224d5ecca16d834b214e5c873881..0b8f90d83bbfa7745ff8aca17f416362cbf290d7 100644 (file)
@@ -1,3 +1,3 @@
-add_library(debugging
+add_library(debugging STATIC
         debugging.cpp debugging.h
         )
index 8d8fb23a361f1d867242b95e5f0ad2c0b1f19ef8..68a12302d342488201c81e9e368790245e31a5ac 100644 (file)
@@ -1,3 +1,3 @@
-add_library(etclib
+add_library(etclib STATIC
         ../etclib.c ../etclib.h
         )
index c7d8a9edb00acc70731c0bfab540c1d2b3713ee0..fede3eb59d3c713758893ea7afc64f26cd76b130 100644 (file)
@@ -1,3 +1,3 @@
-add_library(filematch
+add_library(filematch STATIC
         ../filematch.c ../filematch.h
         )
index d89f57438b40966d7ce6a41003a3b4a27196f30a..e05637efb6e8ea6c69b9d37ac7cf664ec18bfc9c 100644 (file)
@@ -1,4 +1,4 @@
-add_library(generic
+add_library(generic STATIC
         arrayrange.h
         bitfield.h
         callback.cpp callback.h
index b62098c107940d18c233c6470ecb52a81d640eb7..80eca88c62457f699f813b1d7cce4f00b93a0366 100644 (file)
@@ -1,4 +1,4 @@
-add_library(gtkutil
+add_library(gtkutil STATIC
         accelerator.cpp accelerator.h
         button.cpp button.h
         clipboard.cpp clipboard.h
index a0a19a843846403b010f218f51dd204fe8052b77..c4984b83f3b57cfd7b5d2f37e6c7b139eaab23bb 100644 (file)
@@ -7,7 +7,7 @@ else ()
     list(APPEND L_NETLIST l_net_berkley.c)
 endif ()
 
-add_library(l_net ${L_NETLIST})
+add_library(l_net STATIC ${L_NETLIST})
 
 if (WIN32)
     target_link_libraries(l_net PRIVATE ws2_32)
index 6cfedbefb42c17da3bdbb60372f75152536607e3..4dc8a8ce6cc5bab123a8fb2fcc4863ff0bd33031 100644 (file)
@@ -1,4 +1,4 @@
-add_library(math
+add_library(math STATIC
         _.cpp
         aabb.h
         curve.h
index 5682a5e1d68c8dec76fec7f782184046fcd5b9bb..27b087a85f85868865901c0fd656247b0f447a51 100644 (file)
@@ -1,4 +1,4 @@
-add_library(mathlib
+add_library(mathlib STATIC
         bbox.c
         line.c
         m4x4.c
index 1c345734254cd749c6944f9bf045a15a31e1a08e..bebfc22db008d76a542f64568d42bc63f35044e2 100644 (file)
@@ -1,3 +1,3 @@
-add_library(memory
+add_library(memory STATIC
         allocator.cpp allocator.h
         )
index d27aa63382d260df34c63902bf658916956611fa..489ee4a5be423b841341854617ff0b7c4d9a1d75 100644 (file)
@@ -1,4 +1,4 @@
-add_library(modulesystem
+add_library(modulesystem STATIC
         moduleregistry.h
         modulesmap.h
         singletonmodule.cpp singletonmodule.h
index 437b506caff6c7fc78251a80af0b1acdd5f61f5c..a1e475998e10b3eac6e2af3aeb7cbc56dee10cc2 100644 (file)
@@ -1,4 +1,4 @@
-add_library(os
+add_library(os STATIC
         _.cpp
         dir.h
         file.h
index 0f1286d0fb4056fe4349408135471de1bf9b7d76..4800fb46af957ba1704a71bdae0ae60990c6c3b4 100644 (file)
@@ -1,4 +1,4 @@
-add_library(picomodel
+add_library(picomodel STATIC
         lwo/clip.c
         lwo/envelope.c
         lwo/list.c
index e3822f42283cccb147141ad4ba008b7c4211bf59..745238f3e3f6fc3b8e5f3135d066caf98147f693 100644 (file)
@@ -1,4 +1,4 @@
-add_library(profile
+add_library(profile STATIC
         file.cpp file.h
         profile.cpp profile.h
         )
index 6e49527df0766e53fe87b3bddc694067ecb5c91d..0adfd1246803e20b3a8bc51a0e8e1bffb4ed99b4 100644 (file)
@@ -1,4 +1,4 @@
-add_library(script
+add_library(script STATIC
         _.cpp
         scripttokeniser.h
         scripttokenwriter.h
index 499a483805ab3e86e8cf20af65addc7b9463e28b..026c7249f735047163b9528b3ec2c4169b2996a4 100644 (file)
@@ -1,4 +1,4 @@
-add_library(signal
+add_library(signal STATIC
         isignal.h
         signal.cpp signal.h
         signalfwd.h
index 3a6b603d8fe7d4aa97a835483bd1281d4c49e637..d301f272b56abeb22b271129a390090fd5403dd4 100644 (file)
@@ -1,4 +1,4 @@
-add_library(splines
+add_library(splines STATIC
         math_angles.cpp math_angles.h
         math_matrix.cpp math_matrix.h
         math_quaternion.cpp math_quaternion.h
index 6ce79395bbb02937f8eab135bab9a1ab38f10738..ec1c9ae94751ac005dcf400eb2ce42efd9d223a7 100644 (file)
@@ -1,4 +1,4 @@
-add_library(stream
+add_library(stream STATIC
         _.cpp
         filestream.h
         memstream.h
index 4b0720a50e6891d4908b38c601794356e4c0fe93..a9c2f471a8fda5635dbaf88de546e5df76324509 100644 (file)
@@ -1,4 +1,4 @@
-add_library(string
+add_library(string STATIC
         pooledstring.cpp pooledstring.h
         string.h
         stringfwd.h
index 080376b1b665dad1aee7f06f78e363efdce743b6..cfa957584d4d0b7ac844362de61d87e6c694a1bc 100644 (file)
@@ -1,4 +1,4 @@
-add_library(uilib
+add_library(uilib STATIC
         uilib.cpp
         )
 
index 96e1e216fe43971c4a656d3794e9c27e287a3ff0..cd0b040af7bd1ce239089e0173beefbff5302dce 100644 (file)
@@ -1,4 +1,4 @@
-add_library(xmllib
+add_library(xmllib STATIC
         ixml.h
         xmlelement.h
         xmlparser.h