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) d> aboutsummaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2017-01-19gnu: Add Heimdal....* gnu/packages/kerberos.scm (heimdal): New variable. Ludovic Courtès
2017-01-19gnu: Move Kerberos implemetations to (gnu packages kerberos)....* gnu/packages/mit-krb5.scm: Remove. * gnu/packages/shishi.scm: Remove. * gnu/packages/kerberos.scm: New file, from the concatenation of these two. * gnu/local.mk (GNU_SYSTEM_MODULES): Adjust accordingly. * gnu/packages/admin.scm, gnu/packages/cyrus-sasl.scm, gnu/packages/gnome.scm, gnu/packages/gnuzilla.scm, gnu/packages/gsasl.scm, gnu/packages/java.scm, gnu/packages/networking.scm, gnu/packages/nfs.scm, gnu/packages/onc-rpc.scm, gnu/packages/ssh.scm, gnu/packages/web.scm: Adjust accordingly. Ludovic Courtès