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) ef='/guix/about/'>aboutsummaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2020-11-21services: cups: Add Splix by default....* gnu/services/cups.scm (cups-configuration): Add splix to the default extensions. * doc/guix.texi (Printing Services): Document it. Tobias Geerinckx-Rice
2020-11-21gnu: Rename escpr to epson-inkjet-printer-escpr....‘escpr’ is nice and short, but everyone else calls this package ‘epson-inkjet-printer-escpr’. More importantly, so does upstream. * gnu/packages/cups.scm (escpr, epson-inkjet-printer-escpr,): Rename escpr to epson-inkjet-printer-escpr, redefining escpr as deprecated-package. Adjust all users. Tobias Geerinckx-Rice
2020-11-18services: cups: Add some extensions by default....* gnu/services/cups.scm (cups-configuration): Add some extensions by default. doc/guix.texi (Printing Services): Document the default value. Danny Milosavljevic
2020-05-26services: Fix permissions of directory /var/spool/cups/tmp....Fixes <https://bugs.gnu.org/41367>. * gnu/services/cups.scm (%cups-activation): Fix permissions of directory /var/spool/cups/tmp. Danny Milosavljevic