RPATH/RUNPATH not passed to compiled binaries. #1402
Labels
No labels
UX
active development
backlog
blocker
bootstrap
bounty
bug
dependencies
discussion
documentation
duplicate
enhancement
flaky test
help wanted
invalid
javascript
question
release
tendentious
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mighty-gerbils/gerbil#1402
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I build gerbil with:
./configure CFLAGS="-I/home/linuxbrew/.linuxbrew/opt/openssl@3/include" LDFLAGS="-L/home/linuxbrew/.linuxbrew/opt/openssl@3/lib -Wl,-rpath=/home/linuxbrew/.linuxbrew/opt/openssl@3/lib"
This is to force it to use ssl from homebrew, and not the host system ssl.
The resulting binaries for gerbil all work with the proper ssl.
However any project built in gerbil results in the binaries NOT having the RUNPATH/RPATH set.
For now my fix is to just use patchelf to set rpath directly in the generated binary.
patchelf --set-rpath /home/linuxbrew/.linuxbrew/opt/openssl@3/lib .gerbil/bin/kunabi