Changed the definition of SHRLIB_SEARCH_DIRS to be the actual dir searched

Added implementation for solaris-sparc
This commit is contained in:
Andrew Johnson
2003-02-06 22:00:20 +00:00
parent df2451c7ee
commit 3a4296cd4e
2 changed files with 6 additions and 5 deletions

View File

@@ -30,8 +30,8 @@ ARCH_DEP_CPPFLAGS += -D_X86_
ARCH_DEP_CFLAGS += -mcpu=pentium
# Set runtime path for shared libraries
DIR_LDFLAGS_YES += $(sort $(SHRLIB_SEARCH_DIRS:%=-Wl,-rpath,%/lib/$(T_A)))
SHRLIB_LDFLAGS += $(sort $(SHRLIB_SEARCH_DIRS:%=-Wl,-rpath,%/lib/$(T_A)))
SHRLIB_LDFLAGS += $(sort $(SHRLIB_SEARCH_DIRS:%=-Wl,-rpath,%))
DIR_LDFLAGS_YES += $(sort $(SHRLIB_SEARCH_DIRS:%=-Wl,-rpath,%))
DIR_LDFLAGS += $(DIR_LDFLAGS_$(SHARED_LIBRARIES))
ifdef CROSS

View File

@@ -32,9 +32,10 @@ OP_SYS_CPPFLAGS += -DSOLARIS=$(SOLARIS_VERSION)
# socket and nsl needed by libca.a
OP_SYS_LDLIBS += -lsocket -lnsl
# -R does not work unless full path names are specified
# use loader's -R option
DIR_LDFLAGS += $(sort $(DEPLIB_DIRS:%=-R%))
# Set runtime path for shared libraries
SHRLIB_LDFLAGS += $(sort $(SHRLIB_SEARCH_DIRS:%=-R%))
DIR_LDFLAGS_YES += $(sort $(SHRLIB_SEARCH_DIRS:%=-R%))
DIR_LDFLAGS += $(DIR_LDFLAGS_$(SHARED_LIBRARIES))
ifdef CROSS
GNU_TARGET=sparc-sun-solaris2