Files
nixpkgs/pkgs/by-name/li/libspatialindex/no-rpath-for-darwin.diff
Ihar Hrachyshka 17c76b0312 libspatialindex: fix on Darwin
Recent bump to 2.1.0 changed the soversion from 7 to 8. It broke
python3-rtree as follows:

OSError: Could not load libspatialindex_c library

Instead of bumping the version in postFixup, disable rpath in cmake
instructions.

Co-Authored-By: Reno Dakota <paparodeo@proton.me>
2025-01-16 20:13:22 -05:00

12 lines
260 B
Diff

--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -248,7 +248,7 @@ if(HAVE_BCOPY)
endif()
-if(APPLE)
+if(FALSE)
set(MACOSX_RPATH ON)
set_target_properties(spatialindex spatialindex_c
PROPERTIES INSTALL_NAME_DIR "@rpath")