--- extensions/python/xpcom/src/Makefile.in.orig 2007-06-01 03:41:14.000000000 +0200 +++ extensions/python/xpcom/src/Makefile.in 2007-06-01 03:41:38.000000000 +0200 @@ -90,6 +90,9 @@ EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS) IMPORT_LIBRARY := $(SHARED_LIBRARY:.pyd=.lib) +DSO_LDOPTS += -Wl,-rpath,$(mozappdir) +OS_LDFLAGS += -Wl,-rpath,$(mozappdir) + # Install into our Python directory # default build installs into bin and lib - remove them libs::