Skip to content

Commit

Permalink
Add the needed linker flags to avoid bomb
Browse files Browse the repository at this point in the history
  • Loading branch information
linas committed Oct 1, 2016
1 parent d0c6e88 commit 7e54478
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/qt-gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ IF(UNIX AND NOT APPLE)
OUTPUT_STRIP_TRAILING_WHITESPACE)
STRING(REPLACE "\n" "" GnuStep_FLAGS ${GnuStep_FLAGS})
STRING(REPLACE "\n" "" GnuStep_LINK_FLAGS ${GnuStep_LINK_FLAGS})
set_source_files_properties(osx-configuration.mm PROPERTIES COMPILE_FLAGS "${GnuStep_FLAGS}")

SET(GnuStep_LINK_FLAGS "-Wl,--no-as-needed ${GnuStep_LINK_FLAGS}")
set_source_files_properties(osx-configuration.mm PROPERTIES
COMPILE_FLAGS "${GnuStep_FLAGS}"
LINKER_FLAGS "${GnuStep_LINK_FLAGS}")
ELSE()
set_source_files_properties(osx-configuration.mm PROPERTIES COMPILE_FLAGS -ObjC++)
ENDIF()
Expand Down

0 comments on commit 7e54478

Please sign in to comment.