Always build dynamic library search paths into executable.

This commit is contained in:
Janet B. Anderson
2003-08-04 18:35:50 +00:00
parent 54868e8723
commit 0fc52db97b
6 changed files with 6 additions and 12 deletions

View File

@@ -27,8 +27,7 @@ LOADABLE_SHRLIB_PREFIX =
# Set runtime path for shared libraries
empty:= # trick from the make docs...
space:= $(empty) $(empty)
RUNTIME_LDFLAGS_YES = -Wl,+b$(subst $(space),:,$(sort $(SHRLIB_SEARCH_DIRS))),+s
RUNTIME_LDFLAGS += $(RUNTIME_LDFLAGS_$(SHARED_LIBRARIES))
RUNTIME_LDFLAGS = -Wl,+b$(subst $(space),:,$(sort $(SHRLIB_SEARCH_DIRS))),+s
ifdef CROSS
GNU_TARGET=parisc-hp-unix

View File

@@ -27,8 +27,7 @@ OP_SYS_LDLIBS = -lrt
#ARCH_DEP_CPPFLAGS += -D_X86_
# Set runtime path for shared libraries
RUNTIME_LDFLAGS_YES = $(SHRLIB_SEARCH_DIRS:%=-Wl,-rpath,%)
RUNTIME_LDFLAGS += $(RUNTIME_LDFLAGS_$(SHARED_LIBRARIES))
RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_DIRS:%=-Wl,-rpath,%)
ifdef CROSS
GNU_TARGET=ppc_82xx

View File

@@ -28,8 +28,7 @@ ARCH_DEP_CPPFLAGS += -D_X86_
ARCH_DEP_CFLAGS += -mcpu=pentium
# Set runtime path for shared libraries
RUNTIME_LDFLAGS_YES = $(SHRLIB_SEARCH_DIRS:%=-Wl,-rpath,%)
RUNTIME_LDFLAGS += $(RUNTIME_LDFLAGS_$(SHARED_LIBRARIES))
RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_DIRS:%=-Wl,-rpath,%)
ifdef CROSS
GNU_TARGET=i586-pc-linux-gnu

View File

@@ -28,8 +28,7 @@ POSIX_LDLIBS_YES += -lposix4 -lpthread $(POSIX_LDLIBS_YES_$(SOLARIS_VERSION))
OP_SYS_CPPFLAGS += -DSOLARIS=$(SOLARIS_VERSION)
# Set runtime path for shared libraries
RUNTIME_LDFLAGS_YES = $(SHRLIB_SEARCH_DIRS:%=-R%)
RUNTIME_LDFLAGS += $(RUNTIME_LDFLAGS_$(SHARED_LIBRARIES))
RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_DIRS:%=-R%)
ifdef CROSS
GNU_TARGET=sparc-sun-solaris2

View File

@@ -29,8 +29,7 @@ OP_SYS_CPPFLAGS += -DSOLARIS=$(SOLARIS_VERSION)
ARCH_DEP_CPPFLAGS = -D_X86_
# Set runtime path for shared libraries
RUNTIME_LDFLAGS_YES = $(SHRLIB_SEARCH_DIRS:%=-R%)
RUNTIME_LDFLAGS += $(RUNTIME_LDFLAGS_$(SHARED_LIBRARIES))
RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_DIRS:%=-R%)
ifdef CROSS
GNU_TARGET=x86-sun-solaris2

View File

@@ -24,8 +24,7 @@ OP_SYS_CPPFLAGS = -DSUNOS4
ARCH_DEP_CPPFLAGS += -D_X86_
# Set runtime path for shared libraries
RUNTIME_LDFLAGS_YES = $(SHRLIB_SEARCH_DIRS:%=-R%)
RUNTIME_LDFLAGS += $(RUNTIME_LDFLAGS_$(SHARED_LIBRARIES))
RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_DIRS:%=-R%)
ifdef CROSS
GNU_TARGET=x86-sun-sunos4