   GARBAGE += $(MAPFILE)
   ifdef NS_USE_GCC
   ifdef GCC_USE_GNU_LD
-! MKSHLIB += -Wl,--version-script,$(MAPFILE) -Wl,-rpath,\$$ORIGIN
+! MKSHLIB += -Wl,--version-script,$(MAPFILE) -Wl,-rpath,\$$ORIGIN:\$$ORIGIN/../ure-link/lib
   else
 ! MKSHLIB += -Wl,-M,$(MAPFILE) -Wl,-R,'$$ORIGIN'
   endif

  endif
  
+ ifeq ($(OS_ARCH),Linux)
+ MKSHLIB += -Wl,-rpath,\$$ORIGIN
+ endif
+ 
  ifeq ($(OS_ARCH),SunOS)

  
  DSO_CFLAGS		= -fPIC
  DSO_LDOPTS		= -shared
+ DSO_LDOPTS		+= -Wl,-rpath,\$$ORIGIN:\$$ORIGIN/../ure-link/lib
  DSO_LDFLAGS		=
  
  # INCLUDES += -I/usr/include -Y/usr/include/linux
