These linker options for the 'onnx_cpp2py_export.cpython-38-*-gnu.so' (or similar) extension are meant to be used when building 'libonn.a', a static archive. This patch adapts the link flags to linking with 'libonnx.so'. diff --git a/CMakeLists.txt b/CMakeLists.txt index cede3073..52f846ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -475,11 +475,10 @@ if(BUILD_ONNX_PYTHON) PRIVATE $) else() # Assume everything else is like gcc - target_link_libraries(onnx_cpp2py_export - PRIVATE "-Wl,--whole-archive" $ - "-Wl,--no-whole-archive") + target_link_libraries(onnx_cpp2py_export PRIVATE onnx) set_target_properties(onnx_cpp2py_export - PROPERTIES LINK_FLAGS "-Wl,--exclude-libs,ALL") + PROPERTIES LINK_FLAGS + "-Wl,-rpath=${CMAKE_INSTALL_PREFIX}/lib") endif() target_link_libraries(onnx_cpp2py_export PRIVATE onnx) aboutsummaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2024-04-04gnu: go-github-com-schollz-progressbar-v3: Move to golang-xyz....* gnu/packages/golang.scm (go-github-com-schollz-progressbar-v3): Move from here ... * gnu/packages/golang-xyz.scm: ... to here. * gnu/packages/android.scm: Add (gnu packages golang-xyz) module. Change-Id: Id40397b4f3323670847d8e46f5d8fc6ffea61c84 Sharlatan Hellseher
2024-02-18gnu: Add emacs-fdroid....* gnu/packages/android.scm (emacs-fdroid): New variable. Change-Id: I68358b5490406aa6ee24391bee6e69bebc574d96 Signed-off-by: Ludovic Courtès <ludo@gnu.org> Miguel Ángel Moreno
2024-02-14gnu: android-file-transfer: Update to 4.3....* gnu/packages/android.scm (android-file-transfer): Update to 4.3. Change-Id: I011229903be725958d3b0c018cfa7a7afef3eacd Signed-off-by: John Kehayias <john.kehayias@protonmail.com> kiasoc5