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 5d25ce8..b8c48b0 100644 (file)
@@ -1,3 +1,3 @@
-add_library(cmdlib
+add_library(cmdlib STATIC
         cmdlib.cpp ../cmdlib.h
         )
index 00bfbb4..028129b 100644 (file)
@@ -1,4 +1,4 @@
-add_library(container
+add_library(container STATIC
         array.cpp array.h
         cache.h
         container.h
index 6e8463d..a5ec18e 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 d4de1a7..a45ccc7 100644 (file)
@@ -1,3 +1,3 @@
-add_library(ddslib
+add_library(ddslib STATIC
         ddslib.c ../ddslib.h
         )
index e5880de..0b8f90d 100644 (file)
@@ -1,3 +1,3 @@
-add_library(debugging
+add_library(debugging STATIC
         debugging.cpp debugging.h
         )
index 8d8fb23..68a1230 100644 (file)
@@ -1,3 +1,3 @@
-add_library(etclib
+add_library(etclib STATIC
         ../etclib.c ../etclib.h
         )
index c7d8a9e..fede3eb 100644 (file)
@@ -1,3 +1,3 @@
-add_library(filematch
+add_library(filematch STATIC
         ../filematch.c ../filematch.h
         )
index d89f574..e05637e 100644 (file)
@@ -1,4 +1,4 @@
-add_library(generic
+add_library(generic STATIC
         arrayrange.h
         bitfield.h
         callback.cpp callback.h
index b62098c..80eca88 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 a0a19a8..c4984b8 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 6cfedbe..4dc8a8c 100644 (file)
@@ -1,4 +1,4 @@
-add_library(math
+add_library(math STATIC
         _.cpp
         aabb.h
         curve.h
index 5682a5e..27b087a 100644 (file)
@@ -1,4 +1,4 @@
-add_library(mathlib
+add_library(mathlib STATIC
         bbox.c
         line.c
         m4x4.c
index 1c34573..bebfc22 100644 (file)
@@ -1,3 +1,3 @@
-add_library(memory
+add_library(memory STATIC
         allocator.cpp allocator.h
         )
index d27aa63..489ee4a 100644 (file)
@@ -1,4 +1,4 @@
-add_library(modulesystem
+add_library(modulesystem STATIC
         moduleregistry.h
         modulesmap.h
         singletonmodule.cpp singletonmodule.h
index 437b506..a1e4759 100644 (file)
@@ -1,4 +1,4 @@
-add_library(os
+add_library(os STATIC
         _.cpp
         dir.h
         file.h
index 0f1286d..4800fb4 100644 (file)
@@ -1,4 +1,4 @@
-add_library(picomodel
+add_library(picomodel STATIC
         lwo/clip.c
         lwo/envelope.c
         lwo/list.c
index e3822f4..745238f 100644 (file)
@@ -1,4 +1,4 @@
-add_library(profile
+add_library(profile STATIC
         file.cpp file.h
         profile.cpp profile.h
         )
index 6e49527..0adfd12 100644 (file)
@@ -1,4 +1,4 @@
-add_library(script
+add_library(script STATIC
         _.cpp
         scripttokeniser.h
         scripttokenwriter.h
index 499a483..026c724 100644 (file)
@@ -1,4 +1,4 @@
-add_library(signal
+add_library(signal STATIC
         isignal.h
         signal.cpp signal.h
         signalfwd.h
index 3a6b603..d301f27 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 6ce7939..ec1c9ae 100644 (file)
@@ -1,4 +1,4 @@
-add_library(stream
+add_library(stream STATIC
         _.cpp
         filestream.h
         memstream.h
index 4b0720a..a9c2f47 100644 (file)
@@ -1,4 +1,4 @@
-add_library(string
+add_library(string STATIC
         pooledstring.cpp pooledstring.h
         string.h
         stringfwd.h
index 080376b..cfa9575 100644 (file)
@@ -1,4 +1,4 @@
-add_library(uilib
+add_library(uilib STATIC
         uilib.cpp
         )
 
index 96e1e21..cd0b040 100644 (file)
@@ -1,4 +1,4 @@
-add_library(xmllib
+add_library(xmllib STATIC
         ixml.h
         xmlelement.h
         xmlparser.h