Skip to content

Commit

Permalink
removed static and added libc.a
Browse files Browse the repository at this point in the history
  • Loading branch information
lausdahl committed Mar 14, 2024
1 parent 43a2373 commit 1da4e7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jnifmuapi/src/main/native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ target_link_libraries(${PROJECT_NAME} ${STDCPP_LIBRARY})
if (UNIX)
if (APPLE)
else ()
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libgcc -static-libstdc++ -static")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libgcc -static-libstdc++ ")
target_link_libraries(${PROJECT_NAME} /usr/lib/x86_64-linux-gnu/libc.a)
endif ()
endif ()
if (WIN32)
Expand Down

0 comments on commit 1da4e7e

Please sign in to comment.