Skip to content

Commit

Permalink
494107 update rpath ORIGIN for solaris and linux r=julien
Browse files Browse the repository at this point in the history
  • Loading branch information
glen.beasley%sun.com committed Jun 4, 2009
1 parent de9d287 commit a00fd5f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
7 changes: 7 additions & 0 deletions security/nss/cmd/platlibs.mk
Expand Up @@ -51,6 +51,13 @@ endif
endif

ifeq ($(OS_ARCH), Linux)
ifeq ($(BUILD_SUN_PKG), 1)
ifeq ($(USE_64), 1)
EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN/../lib64:/opt/sun/private/lib64:$$ORIGIN/../lib'
else
EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN/../lib:/opt/sun/private/lib'
endif
endif
ifeq ($(USE_64), 1)
EXTRA_SHARED_LIBS += -Wl,-rpath,'$$ORIGIN/../lib64:$$ORIGIN/../lib'
else
Expand Down
14 changes: 14 additions & 0 deletions security/nss/lib/nss/config.mk
Expand Up @@ -143,6 +143,20 @@ MKSHLIB += -R '$$ORIGIN'
endif
endif

ifeq ($(OS_TARGET),Linux)
# The -rpath '$$ORIGIN' linker option instructs this library to search for its
# dependencies in the same directory where it resides.
ifeq ($(BUILD_SUN_PKG), 1)
ifeq ($(USE_64), 1)
MKSHLIB += -Wl,-rpath,'$$ORIGIN:/opt/sun/private/lib64:/opt/sun/private/lib'
else
MKSHLIB += -Wl,-rpath,'$$ORIGIN:/opt/sun/private/lib'
endif
else
MKSHLIB += -Wl,-rpath,'$$ORIGIN'
endif
endif

ifeq ($(OS_ARCH), HP-UX)
ifneq ($(OS_TEST), ia64)
# pa-risc
Expand Down
22 changes: 22 additions & 0 deletions security/nss/lib/softoken/config.mk
Expand Up @@ -96,12 +96,34 @@ OS_LIBS += -lpthread
endif

ifeq ($(OS_TARGET),SunOS)
ifeq ($(BUILD_SUN_PKG), 1)
# The -R '$ORIGIN' linker option instructs this library to search for its
# dependencies in the same directory where it resides.
ifeq ($(USE_64), 1)
MKSHLIB += -R '$$ORIGIN:/usr/lib/mps/secv1/64:/usr/lib/mps/64'
else
MKSHLIB += -R '$$ORIGIN:/usr/lib/mps/secv1:/usr/lib/mps'
endif
else
MKSHLIB += -R '$$ORIGIN'
endif
OS_LIBS += -lbsm
endif

ifeq ($(OS_TARGET),Linux)
# The -rpath '$$ORIGIN' linker option instructs this library to search for its
# dependencies in the same directory where it resides.
ifeq ($(BUILD_SUN_PKG), 1)
ifeq ($(USE_64), 1)
MKSHLIB += -Wl,-rpath,'$$ORIGIN:/opt/sun/private/lib64:/opt/sun/private/lib'
else
MKSHLIB += -Wl,-rpath,'$$ORIGIN:/opt/sun/private/lib'
endif
else
MKSHLIB += -Wl,-rpath,'$$ORIGIN'
endif
endif

ifeq ($(OS_ARCH), HP-UX)
ifneq ($(OS_TEST), ia64)
# pa-risc
Expand Down

0 comments on commit a00fd5f

Please sign in to comment.