Skip to content

build: add --local-flint to set rpath in dev build - #135

Merged
oscarbenjamin merged 2 commits into
flintlib:masterfrom
oscarbenjamin:pr_flint_rpath
Jun 13, 2024
Merged

oscarbenjamin merged 2 commits into
flintlib:masterfrom
oscarbenjamin:pr_flint_rpath

Conversation

@oscarbenjamin

Copy link
Copy Markdown
Collaborator

This implements mesonbuild/meson#13046 (comment).

On Linux the current meson build needs LD_LIBRARY_PATH to be set when using a local build of flint. This adds a project option to install the rpaths and also customises spin's build command so that you can do:

spin build --local-flint=.local/lib/pkgconfig

@oscarbenjamin

Copy link
Copy Markdown
Collaborator Author

I've removed the custom spin command. To set the rpaths you can use:

spin build -- -Dpkg_config_path=$(pwd)/.local/lib/pkgconfig -Dadd_flint_rpath=true

@oscarbenjamin
oscarbenjamin merged commit 625646a into flintlib:master Jun 13, 2024
@oscarbenjamin
oscarbenjamin deleted the pr_flint_rpath branch June 13, 2024 17:17
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

Successfully merging this pull request may close these issues.

1 participant