diff options
author | tron <tron@pkgsrc.org> | 2004-08-20 16:59:58 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2004-08-20 16:59:58 +0000 |
commit | fd5f73b44db22df12c39cfe63bfee893758cb9c0 (patch) | |
tree | 147a2450a099ab456206b5df867c350b0f82e23f /shells/zsh | |
parent | 758b63ba373f30f0def5c2e341143f98b815baf9 (diff) | |
download | pkgsrc-fd5f73b44db22df12c39cfe63bfee893758cb9c0.tar.gz |
Set "BUILDLINK_PASSTHRU_RPATHDIRS" to stop buildlink3 from removing "/lib"
from the run time shared library path instead of trying to defeat its
option parser.
Diffstat (limited to 'shells/zsh')
-rw-r--r-- | shells/zsh/Makefile.common | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/shells/zsh/Makefile.common b/shells/zsh/Makefile.common index 4a7d30e6b81..8b2a389a920 100644 --- a/shells/zsh/Makefile.common +++ b/shells/zsh/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.15 2004/08/20 11:48:46 tron Exp $ +# $NetBSD: Makefile.common,v 1.16 2004/08/20 16:59:58 tron Exp $ DISTNAME= zsh-${ZSH_VERSION} CATEGORIES= shells @@ -28,13 +28,14 @@ PKG_INSTALLATION_TYPES= overwrite pkgviews BUILD_DEFS+= ZSH_STATIC .if defined(ZSH_STATIC) && !empty(ZSH_STATIC:M[Yy][Ee][Ss]) -CONFIGURE_ARGS+=--disable-dynamic +CONFIGURE_ARGS+= --disable-dynamic NETBSD_SHLINKER= /libexec/ld.elf_so +NETBSD_SHLIBDIR= /lib -. if ${OPSYS} == "NetBSD" && \ +. if ${OPSYS} == "NetBSD" && ${OBJECT_FMT} == "ELF" && \ defined(MKDYNAMICROOT) && !empty(MKDYNAMICROOT:M[Yy][Ee][Ss]) && \ - ${OBJECT_FMT} == "ELF" && exists(${NETBSD_SHLINKER}) + exists(${NETBSD_SHLINKER}) && exists(${NETBSD_SHLIBDIR}) # # Built a dynamically linked "zsh" binary on NetBSD systems which use # dynamically linked binaries on the root filesystem. The binary will @@ -42,7 +43,9 @@ NETBSD_SHLINKER= /libexec/ld.elf_so # root filesystem. We use "-rpath" below by purpose because the # buildlink 3 framework won't filter it out. # -LDFLAGS+= -Wl,-dynamic-linker=${NETBSD_SHLINKER} -rpath=/lib +BUILDLINK_PASSTHRU_RPATHDIRS+= ${NETBSD_SHLIBDIR} + +LDFLAGS+= -Wl,-dynamic-linker=${NETBSD_SHLINKER} -Wl,-R${NETBSD_SHLIBDIR} . else LDFLAGS+= -static . endif |