mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-10 17:37:14 +00:00
Add noexecstack linker flag
This commit is contained in:
parent
0279682147
commit
49ce4891bc
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ if(UNIX)
|
|||
if (APPLE)
|
||||
set(ONNXRUNTIME_SO_LINK_FLAG "-Xlinker -dead_strip")
|
||||
else()
|
||||
set(ONNXRUNTIME_SO_LINK_FLAG "-Xlinker --version-script=${SYMBOL_FILE} -Xlinker --no-undefined -Xlinker --gc-sections")
|
||||
set(ONNXRUNTIME_SO_LINK_FLAG "-Xlinker --version-script=${SYMBOL_FILE} -Xlinker --no-undefined -Xlinker --gc-sections -z noexecstack")
|
||||
endif()
|
||||
else()
|
||||
set(ONNXRUNTIME_SO_LINK_FLAG "-DEF:${SYMBOL_FILE}")
|
||||
|
|
|
|||
Loading…
Reference in a new issue