Skip to content

Commit

Permalink
Merge pull request #204 from robotology/fix-ld-config
Browse files Browse the repository at this point in the history
Do not overwrite default linker flags so that LDFLAGS environment variable is considered
  • Loading branch information
diegoferigo authored Apr 13, 2021
2 parents 4b23047 + 10627d2 commit b776e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ if(UNIX AND NOT APPLE)
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
get_filename_component(LINKER_BIN ${CMAKE_LINKER} NAME)
if(${LINKER_BIN} STREQUAL "ld")
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--unresolved-symbols=report-all")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--unresolved-symbols=report-all")
endif()
endif()
endif()
Expand Down

0 comments on commit b776e49

Please sign in to comment.