I seem to have a similar issue since I started testing Ubuntu 18. I have myapp -> mylib -> libQt5Gui.so -> libpng.so -> libz.so.1 The qt lib has an explicit link on the command line. The 2 last libraries can be found in the same folder, so i used to add -rpath-link to that folder to make them found at link time without storing that path in the binaries (gcc 4.8 / ld 2.24).
With gcc 7 / ld 2.30 of ubuntu 18.04, libpng seems found, but libz cannot be resolved. LD_DEBUG=libs shows that a libz from the system is found at some point during the build, but that's not the one i want, and the linker does not seem happy with it anyways. Here too, adding that folder to LD_LIBRARY_PATH makes the link succeed. Has there been any search on the issue? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1737608 Title: RPATH no longer respected for indirect dependencies To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1737608/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
