Skip to content

Commit

Permalink
Merge pull request #907 from KaiSzuttor/linker-option
Browse files Browse the repository at this point in the history
Adding linker flag to resolve missing libs on ubuntu. Thanks to Micha…
  • Loading branch information
fweik authored Nov 11, 2016
2 parents 38516de + 555d263 commit c4037b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ set(SCRIPTDIR ${DATA}/scripts)
if(APPLE)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -undefined dynamic_lookup")
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-as-needed")
endif()

#######################################################################
# Subdirectories
Expand Down

0 comments on commit c4037b4

Please sign in to comment.