Browse Source

Avoid overriding user linker flags (LDFLAGS) for modules and shared libs

Signed-off-by: Fabio Rossi <rossi.f@inwind.it>
pull/4/head
Fabio Rossi 5 months ago
parent
commit
639a2939cf
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      CMakeLists.txt

+ 2
- 2
CMakeLists.txt View File

@@ -60,8 +60,8 @@ include( ConfigureChecks.cmake )
60 60
 add_definitions( -DHAVE_CONFIG_H )
61 61
 
62 62
 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
63
-set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
64
-set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
63
+set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
64
+set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
65 65
 
66 66
 
67 67
 ##### directories

Loading…
Cancel
Save