Skip to content

Commit 9588d19

Browse files
committed
Try to fix static build
1 parent a625e2b commit 9588d19

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dynadjust/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,10 @@ if(BUILD_STATIC)
567567

568568
message("")
569569
message(STATUS "STATIC_LIBS_LIST=${STATIC_LIBS_LIST}")
570-
570+
571+
# Replace DNA_LIBRARIES with static equivalents, keeping system libraries
572+
set(DNA_LIBRARIES ${STATIC_LIBS_LIST} -lm -ldl)
573+
571574
# Print sizes of static libraries
572575
message(STATUS "")
573576
message(STATUS "Static library sizes:")

0 commit comments

Comments
 (0)