Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
test
  • Loading branch information
lausdahl authored Oct 5, 2023
1 parent 19be4a5 commit 7165403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jnifmuapi/src/main/native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ target_link_libraries(${PROJECT_NAME} ${STDCPP_LIBRARY})
if (WIN32)
#windows

find_library(PTHREAD_LIBRARY NAMES libpthread.a libpthread.dylib)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libstdc++ -static-libgcc")

set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libstdc++ -static-libgcc -Wl,-Bstatic -lstdc++ -lpthread -Wl,-Bdynamic")

SET_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
endif ()
Expand Down

0 comments on commit 7165403

Please sign in to comment.