Skip to content

Commit 9e534b9

Browse files
committed
* Ensure ONNX Runtime libraries get linked with -z noexecstack on Linux (issue #1715)
1 parent 599c6d9 commit 9e534b9

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
* Ensure ONNX Runtime libraries get linked with `-z noexecstack` on Linux ([issue #1715](https://github.com/bytedeco/javacpp-presets/issues/1715))
23
* Add setter methods for `GELUOptions.approximate()` in presets for PyTorch ([pull #1733](https://github.com/bytedeco/javacpp-presets/pull/1733))
34
* Build FFmpeg with HarfBuzz to reenable the `drawtext` filter ([pull #1731](https://github.com/bytedeco/javacpp-presets/pull/1731))
45
* Enable training APIs and include `onnxruntime_training_c_api.h` header file in presets for ONNX Runtime ([pull #1728](https://github.com/bytedeco/javacpp-presets/pull/1728))

onnxruntime/onnxruntime.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ index 010696a610..6c8ccd37cd 100644
2525
+ target_link_options(onnxruntime PRIVATE "LINKER:-L/usr/local/lib")
2626
elseif(NOT CMAKE_SYSTEM_NAME MATCHES "AIX")
2727
- target_link_options(onnxruntime PRIVATE "LINKER:--version-script=${SYMBOL_FILE}" "LINKER:--no-undefined" "LINKER:--gc-sections" "LINKER:-z,noexecstack")
28-
+ target_link_options(onnxruntime PRIVATE "LINKER:--no-undefined")
28+
+ target_link_options(onnxruntime PRIVATE "LINKER:--no-undefined" "LINKER:--gc-sections" "LINKER:-z,noexecstack")
2929
endif()
3030
else()
3131
target_link_options(onnxruntime PRIVATE "-DEF:${SYMBOL_FILE}")

0 commit comments

Comments
 (0)