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
update(cmake): Install libraries into CMAKE_INSTALL_LIBDIR #1101
Conversation
/milestone 0.12.0 |
We might want to close this in favor of https://salsa.debian.org/debian/falcosecurity-libs/-/blob/master/debian/patches/fix-library-install-path.patch |
Issues go stale after 90d of inactivity. Mark the issue as fresh with Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle stale |
4c5746a
to
d43eee1
Compare
I replaced the original PR changes with the patch. |
dfb05ac
to
362e4a9
Compare
Pull in and update a patch from Dima Kogan which installs libraries into CMAKE_INSTALL_LIBDIR: https://salsa.debian.org/debian/falcosecurity-libs/-/blob/master/debian/patches/fix-library-install-path.patch This simplifies things when BUILD_SHARED_LIBS is enabled since it reduces the need to mess with LD_LIBRARY_PATH or DYLD_LIBRARY_PATH. Signed-off-by: Gerald Combs <gerald@wireshark.org>
362e4a9
to
8897a0c
Compare
LGTM label has been added. Git tree hash: 6d285c4fad95645e1cc985e630ea64eb3654210c
|
/milestone 0.14.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FedeDP, geraldcombs, gnosek The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Install libraries into CMAKE_INSTALL_LIBDIR. This appears to be more compliant with the FHS[1] and simplifies linking when BUILD_SHARED_LIBS is enabled.
[1] https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch04s06.html
What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
/area build
Does this PR require a change in the driver versions?
What this PR does / why we need it:
This avoids having to mess with LD_LIBRARY_PATH or -Wl,-rpath when using shared libs.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: