Blame build-shared-library.patch

d78e01
Index: libfixmath-master/CMakeLists.txt
d78e01
===================================================================
d78e01
--- libfixmath-master.orig/CMakeLists.txt
d78e01
+++ libfixmath-master/CMakeLists.txt
d78e01
@@ -17,11 +17,11 @@ file(GLOB fixsingen-srcs fixsingen/*.c)
d78e01
 file(GLOB fixtest-srcs fixtest/*.c fixtest/*.h)
d78e01
 
d78e01
 add_executable(fixtest ${fixtest-srcs})
d78e01
-target_link_libraries(fixtest PRIVATE libfixmath m)
d78e01
+target_link_libraries(fixtest PRIVATE fixmath m)
d78e01
 target_include_directories(fixtest PRIVATE ${CMAKE_SOURCE_DIR})
d78e01
 
d78e01
 add_executable(fixsingen ${fixsingen-srcs})
d78e01
-target_link_libraries(fixsingen PRIVATE libfixmath m)
d78e01
+target_link_libraries(fixsingen PRIVATE fixmath m)
d78e01
 target_include_directories(fixsingen PRIVATE ${CMAKE_SOURCE_DIR})
d78e01
 
d78e01
 
d78e01
Index: libfixmath-master/libfixmath/libfixmath.cmake
d78e01
===================================================================
d78e01
--- libfixmath-master.orig/libfixmath/libfixmath.cmake
d78e01
+++ libfixmath-master/libfixmath/libfixmath.cmake
d78e01
@@ -1,6 +1,6 @@
d78e01
 file(GLOB libfixmath-srcs libfixmath/*.c)
d78e01
 
d78e01
-add_library(libfixmath STATIC ${libfixmath-srcs})
d78e01
+add_library(fixmath SHARED ${libfixmath-srcs})
d78e01
 
d78e01
-target_include_directories(libfixmath INTERFACE
d78e01
+target_include_directories(fixmath INTERFACE
d78e01
   ${CMAKE_CURRENT_SOURCE_DIR})
d78e01
\ No newline at end of file