GNOME Bugzilla – Bug 397557
links wrong libnspr4, mozilla rpath in wrong order
Last modified: 2008-08-08 09:03:54 UTC
I'm building epiphany from jhbuild. Epiphany links the system libnspr4.so, it should link the jhbuild libnspr4.so. Epiphany link looks like: <snip> -Wl,--rpath -Wl,/opt/gnome2/lib64 -Wl,--rpath -Wl,/usr/lib -Wl,--rpath -Wl,/opt/gnome2/lib64 -Wl,--rpath -Wl,/usr/lib -Wl,--rpath -Wl,/opt/gnome2/lib64/xulrunner-1.8.1.2pre Notice, "-Wl,--rpath -Wl,/opt/gnome2/lib64/xulrunner-1.8.1.2pre" is at the end. It should be before "-Wl,--rpath -Wl,/usr/lib". Adding the following to my .jhbuildrc allowed me to work around the problem: os.environ['LDFLAGS'] = '-Wl,--rpath -Wl,/opt/gnome2/lib64/xulrunner-1.8.1.2pre'
I don't see a way to do that... the other rpaths come from LDADD while epiphany's rpath is in LDFLAGS (src/Makefile.am)...
Not a problem anymore with the move to Webkit. Webkit is installed in /opt/gnome2/lib64, and '-Wl,--rpath -Wl,/opt/gnome2/lib64' is listed first.