Skip to content

Commit

Permalink
replace the set of CMAKE_SHARED_LINKER_FLAGS with add_link_options.
Browse files Browse the repository at this point in the history
Change-Id: Iaf8fc1d7680196662d610f34979ded07c6287df9
  • Loading branch information
kiumarssabeti committed Feb 3, 2022
1 parent c19cfbf commit 5693e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake_modules/env.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=unused-result" )
#set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=int-in-bool-context" )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC" )

set ( CMAKE_SHARED_LINKER_FLAGS "-Wl,-Bdynamic -Wl,-z,noexecstack" )
add_link_options ("-Bdynamic -z,neexecstack")

set ( CMAKE_SKIP_BUILD_RPATH TRUE )

Expand Down

0 comments on commit 5693e1a

Please sign in to comment.