Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use INSTALL_NAME_DIR for MacOS #964

Closed
pramsey opened this issue Sep 22, 2023 · 2 comments
Closed

Use INSTALL_NAME_DIR for MacOS #964

pramsey opened this issue Sep 22, 2023 · 2 comments

Comments

@pramsey
Copy link
Member

pramsey commented Sep 22, 2023

Due to some apparent changes in MacOS, we need to start generating dylibs that either use the explicit install location in their path information, which would require using the INSTALL_NAME_DIR directive, or start including LC_RPATH entries in the libraries, which might involve using CMAKE_INSTALL_RPATH on the library targets.

I think the main benefit of using the latter is that it can be re-written after build, which since we test our libraries before install time might be required.

Otherwise we might find that after building geos_test_unit against our local copies it nonetheless loads the system copy from /usr/local/lib when we run it.

@pramsey
Copy link
Member Author

pramsey commented Nov 14, 2023

I'm going to close this for now, as I have instead updated the PostGIS build to set the rpath for GEOS and Proj and GDAL as necessary.

@dbaston
Copy link
Member

dbaston commented Mar 11, 2024

Paul's fix for the PostGIS build: postgis/postgis@14464b4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants