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

Add support for foreign-library to v2-install #6046

Open
matil019 opened this issue May 11, 2019 · 1 comment · May be fixed by #6103
Open

Add support for foreign-library to v2-install #6046

matil019 opened this issue May 11, 2019 · 1 comment · May be fixed by #6103

Comments

@matil019
Copy link

matil019 commented May 11, 2019

cabal v2-install . does install foreign libraries (foreign-library) into the store but doesn't symlink/copy them into ~/.cabal/lib directory.

3.3.2.8.Foreign libraries, Cabal User's Guide says

... we install foreign libraries in ~/.cabal/lib, much like we install executables in ~/.cabal/bin.

but it only applies to v1-install.

I'd like to v2-install foreign libraries, not just v2-build, because the former embeds proper rpaths that refer to ~/.cabal/store/, whereas the latter leaves references to dist-newstyle/.

Currently I'm doing something like:

find ~/.cabal/store -name 'libmyforeignlib.so' -exec ls -t {} + |
head -n1 |
xargs cp -t /path/to/lib/

but I'd like to be able to do something like this instead:

cabal v2-install --installdir-lib=/path/to/lib/ .
@23Skidoo
Copy link
Member

/cc @edsko @typedrat

@typedrat typedrat self-assigned this Jun 2, 2019
@typedrat typedrat linked a pull request Jun 22, 2019 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants