1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Description: Replace LDFLAGS
Inject LDFLAGS into compiler linker option in CMakeLists.txt
Author: Jose Luis Rivero
Forwarded: no
Last-Update: 2021-12-20
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -215,7 +215,7 @@
endif()
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELEASE} ${CMAKE_CXX_FLAGS_DEBUG}")
set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_DEBUG} -pg")
- set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined")
+ set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined $ENV{LDFLAGS}")
# Enforce to colorize compilation output
if(${DART_FORCE_COLORED_OUTPUT})
|