Skip to content

Commit

Permalink
Merge pull request #10 from robotology/fix_ldflags
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
Nicogene authored Aug 5, 2021
2 parents e12e848 + a1fe6fb commit d1ed7ee
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 @@ -25,7 +25,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
add_compile_options(-bigobj)
else ()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
set(CMAKE_EXE_LINKER_FLAGS "-rdynamic")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -rdynamic")
endif ()

# To build shared libraries in Windows, we set CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS to TRUE.
Expand Down

0 comments on commit d1ed7ee

Please sign in to comment.