Skip to content

Commit 5d2f65f

Browse files
committed
Build static executables on unix.
1 parent 917ffaf commit 5d2f65f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/inserts/generate.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ endif()
77

88
# CPPAN_BUILD_SHARED_LIBS has influence on config vars
99
if (EXECUTABLE)
10-
if (NINJA)
10+
# on ninja shared libs do not work (reason is lost)
11+
# on unix the issue is with wrong RPATH, so executables can not load their dependent .so libs
12+
if (NINJA OR UNIX)
1113
# TODO: try to work 0->1 <- why? maybe left as is?
1214
set(CPPAN_BUILD_SHARED_LIBS 0)
1315
endif()

0 commit comments

Comments
 (0)