GNOME Bugzilla – Bug 786251
build: use rpath when linking libgd
Last modified: 2017-08-13 20:17:08 UTC
Some systems (Gentoo for one) can have gd (the gfx library) installed and it has a library conveniently named libgd. This clashes with the subproject libgd if the rpath isn't set for the plugins and libide making use of it. Resulting in the wrong so being loaded and missing symbols. Much thanks to nirbheek for his input in this matter.
Created attachment 357526 [details] [review] build: use rpath when linking libgd Add the builder libdir as rpath to the plugins and libide using the internal libgd. Preventing a clash with the system-wide library with the same name.
Created attachment 357527 [details] [review] build: remove duplicate entry
Review of attachment 357527 [details] [review]: Yup
Review of attachment 357526 [details] [review]: You could probably use `pkglibdir` rather than `pkglibdir_abs` but sounds good.
Lovely, thanks for taking the time to research and put the patches together! Attachment 357526 [details] pushed as 3c91db0 - build: use rpath when linking libgd Attachment 357527 [details] pushed as 3b8fc65 - build: remove duplicate entry