Skip to content

Commit

Permalink
try out
Browse files Browse the repository at this point in the history
  • Loading branch information
lausdahl committed Mar 14, 2024
1 parent 57a88cd commit aa4753d
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions jnifmuapi/src/main/native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,22 @@ endforeach ()

#target_link_libraries(${PROJECT_NAME} /usr/lib/x86_64-linux-gnu/libc.a)

message(STATUS "Static linking with libstdc++.a in ${STDCPP_LIBRARY}")
message(STATUS "Static linking with libc.a in ${LIBC_LIBRARY}")
target_link_libraries(${PROJECT_NAME} ${STDCPP_LIBRARY} ${LIBC_LIBRARY})
if(DEFINED STDCPP_LIBRARY)
message(STATUS "Static linking with libstdc++.a in ${STDCPP_LIBRARY}")
target_link_libraries(${PROJECT_NAME} ${STDCPP_LIBRARY})

endif()

if(DEFINED LIBC_LIBRARY)
message(STATUS "Static linking with libc.a in ${LIBC_LIBRARY}")
# target_link_libraries(${PROJECT_NAME} ${LIBC_LIBRARY})
target_link_libraries(${PROJECT_NAME}
-static-libgcc
-static-libstdc++
-static
${LIBC_LIBRARY}
)
endif()

#
# Post build commands
Expand Down

0 comments on commit aa4753d

Please sign in to comment.