New eyes - Makefile.am with brew install on Ubuntu 20 LTS GitHub Actions - LD_LIBRARY_PATH needed #2587
-
|
Hi all, For the past few days I've been trying to solve my issue. I use I'm using pkg-config from Homebrew to find it and set https://github.com/SentryPeer/SentryPeer/blob/main/configure.ac#L53 and https://github.com/SentryPeer/SentryPeer/blob/main/Makefile.am#L39 all is well on macOS, just Ubuntu. I've even installed a Ubuntu 20 LTS on Virtualbox and can reproduce it. If I set this, all is well, but I don't know why this isn't automatically working: You can see the Action results here - https://github.com/SentryPeer/SentryPeer/runs/4413826525?check_suite_focus=true#step:4:238 I think this is the best place to ask? What have I missed? Thanks for reading, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 15 replies
-
|
It is probably because the @Homebrew/linux what's our policy on adding RPATH flags to the Libs stanza of |
Beta Was this translation helpful? Give feedback.
-
|
Anything I can do for this? I'm hitting the same issue now with zyre, czmq and zeromq |
Beta Was this translation helpful? Give feedback.
-
|
Thanks. I'll have a play over the next few days or so.
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the clear explanation Daniel. Much appreciated.
I might experiment with the Homebrew gcc.
|
Beta Was this translation helpful? Give feedback.
It is probably because the
pkg-configflags don't include-Wl,-rpath,/home/linuxbrew/.linuxbrew/libto the LDFLAGS. You should be able to use something likeexport LDFLAGS='-Wl,-rpath,/home/linuxbrew/.linuxbrew/lib'to add the missing flag that when you compile SentryPeer with brewedlibmicrohttpd.@Homebrew/linux what's our policy on adding RPATH flags to the Libs stanza of
.pcfiles for libraries we ship? We don't need to this when we use those libraries as dependencies within Homebrew itself because we add the RPATH flags in the compiler shims (and the GCC spec file also adds it as well on Linux). However when using those libraries outside of Homebrew, they need the extra RPATH flag fo…