# Gentoo http://bugs.gentoo.org/show_bug.cgi?id=100597 --- mozilla/config/rules.mk.orig 2006-07-07 06:13:36.000000000 +0200 +++ mozilla/config/rules.mk 2006-07-19 13:22:04.000000000 +0200 @@ -510,7 +510,12 @@ # ifeq ($(OS_ARCH),Linux) ifdef IS_COMPONENT +DSO_LDOPTS += -Wl,-rpath,'$$ORIGIN:$$ORIGIN/..' +OS_LDFLAGS += -Wl,-rpath,'$$ORIGIN:$$ORIGIN/..' EXTRA_DSO_LDOPTS += -Wl,-Bsymbolic +else +DSO_LDOPTS += -Wl,-rpath,'$$ORIGIN' +OS_LDFLAGS += -Wl,-rpath,'$$ORIGIN' endif endif