Index: Makefile
===================================================================
--- Makefile (revision 28)
+++ Makefile (revision 29)
@@ -64,7 +64,7 @@
REQUIRES += net/libndp/1.7
REQUIRES += net/bluez/5.62
REQUIRES += net/ppp/2.4.9
-REQUIRES += net/nss/3.64
+REQUIRES += net/nss/3.89
# ======= __END_OF_REQUIRES__ =======
@@ -176,7 +176,9 @@
TARGET_BIN_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX)
TARGET_LIB_RPATH = /lib$(LIBSUFFIX):/usr/lib$(LIBSUFFIX):/usr/lib/../lib$(LIBSUFFIX)
+TARGET_PLUGINS_RPATH = /usr/lib$(LIBSUFFIX)/NetworkManager/$(version)
+
####### Dependencies
$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
@@ -333,6 +335,12 @@
fi ; \
done ; \
)
+ # ======= Set RPATH/RUNPATH for target plugins =======
+ @( cd $(LIBNM_PKG)/usr/lib$(LIBSUFFIX)/NetworkManager/$(version) ; \
+ for file in `find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs echo` ; do \
+ $(PATCHELF) --set-rpath $(TARGET_PLUGINS_RPATH):$(TARGET_LIB_RPATH) $$file 1> /dev/null 2> /dev/null ; \
+ done ; \
+ )
endif
@touch $@