summaryrefslogtreecommitdiff
path: root/packaging/0001_static_library_build.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/0001_static_library_build.patch')
-rw-r--r--packaging/0001_static_library_build.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/packaging/0001_static_library_build.patch b/packaging/0001_static_library_build.patch
new file mode 100644
index 0000000..289a0dc
--- /dev/null
+++ b/packaging/0001_static_library_build.patch
@@ -0,0 +1,26 @@
+diff --git a/libmscgen/CMakeLists.txt b/libmscgen/CMakeLists.txt
+index 0a23900..34cf4d8 100644
+--- a/libmscgen/CMakeLists.txt
++++ b/libmscgen/CMakeLists.txt
+@@ -16,7 +16,7 @@ foreach(lex_file ${LEX_FILES})
+ FLEX_TARGET(${lex_file} ${lex_file}.l ${GENERATED_SRC}/${lex_file}.cpp COMPILE_FLAGS "${LEX_FLAGS}")
+ endforeach()
+
+-add_library(mscgen
++add_library(mscgen STATIC
+ gd.c
+ gd_security.c
+ gdfontt.c
+diff --git a/libxml/CMakeLists.txt b/libxml/CMakeLists.txt
+index 96c5653..596ed90 100644
+--- a/libxml/CMakeLists.txt
++++ b/libxml/CMakeLists.txt
+@@ -11,7 +11,7 @@ set_source_files_properties(${GENERATED_SRC}/xml.l.h PROPERTIES GENERATED 1)
+
+ FLEX_TARGET(xml xml.l ${GENERATED_SRC}/xml.cpp COMPILE_FLAGS "${LEX_FLAGS}")
+
+-add_library(xml
++add_library(xml STATIC
+ ${GENERATED_SRC}/xml.cpp
+ ${GENERATED_SRC}/xml.l.h
+ )