Skip to content

Commit

Permalink
Merge pull request #92 from raramakr/swdev-patch
Browse files Browse the repository at this point in the history
SWDEV-409626 - Use cmake exe linker flags provided by build scripts as well
  • Loading branch information
oliveiradan authored Jul 10, 2023
2 parents 483235d + d8e61e8 commit 9bfdca2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ if("$ENV{CXX}" STREQUAL "/usr/bin/clang++")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ferror-limit=1000000")
endif()

set(CMAKE_EXE_LINKER_FLAGS "-Wl,-Bdynamic -Wl,-z,noexecstack")
# Use the EXE linker flags from build scripts as well
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-Bdynamic -Wl,-z,noexecstack")
set(CMAKE_SKIP_BUILD_RPATH TRUE)

## Address Sanitize Flag
Expand Down

0 comments on commit 9bfdca2

Please sign in to comment.