Skip to content

Commit

Permalink
Make sure -lstdc++ comes last in link order
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Sep 25, 2024
1 parent 8c84988 commit 87bbcab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ foreach(util_program ${util_programs})
set(sources ${util_program}.cpp)
source_group("Source Files" FILES ${sources})
add_executable("${util_program}" ${sources})
target_link_libraries ("${util_program}" apex ${APEX_STDCXX_LIB} ${LIBS})
target_link_libraries ("${util_program}" apex ${LIBS} ${APEX_STDCXX_LIB})
if (BUILD_STATIC_EXECUTABLES)
set_target_properties("${util_program}" PROPERTIES LINK_SEARCH_START_STATIC 1 LINK_SEARCH_END_STATIC 1)
endif()
Expand Down

0 comments on commit 87bbcab

Please sign in to comment.