diff options
author | jlam <jlam> | 2002-11-21 00:50:03 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-11-21 00:50:03 +0000 |
commit | 3d6e481851bd306338897a628008c37994bcb6d7 (patch) | |
tree | 2a11c60748b03df76af84c7c5c65ede8ae3feff6 /devel | |
parent | b0cf10bd7f5bed39d6ee90c56df6d586f77a7737 (diff) | |
download | pkgsrc-3d6e481851bd306338897a628008c37994bcb6d7.tar.gz |
Don't use buildlink2 since we may need this package to bootstrap
buildlink2.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/libtool-base/Makefile | 37 |
1 files changed, 30 insertions, 7 deletions
diff --git a/devel/libtool-base/Makefile b/devel/libtool-base/Makefile index e068f3867c3..df234247742 100644 --- a/devel/libtool-base/Makefile +++ b/devel/libtool-base/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.12 2002/10/09 19:04:12 wiz Exp $ +# $NetBSD: Makefile,v 1.13 2002/11/21 00:50:03 jlam Exp $ # .include "../libtool/Makefile.common" @@ -10,7 +10,7 @@ COMMENT= Generic shared library support script (the script itself) CONFLICTS+= libtool<=1.3.5nb11 -USE_BUILDLINK2= # defined +USE_BUILDLINK2= no # needed for bootstrapping buildlink2 test: build cd ${WRKSRC} && ${MAKE} check @@ -22,10 +22,6 @@ test: build DEPENDS+= c++rt0>=1.0:../../sysutils/c++rt0 .endif -.if ${MACHINE_PLATFORM:MDarwin-*-*} != "" -.include "../../devel/dlcompat/buildlink2.mk" -.endif - .if ${OPSYS} == "NetBSD" .if !exists(/usr/libexec/ld.so) && !exists(/usr/libexec/ld.elf_so) CONFIGURE_ARGS= --disable-shared @@ -34,6 +30,33 @@ CONFIGURE_ARGS= --disable-shared CONFIGURE_ARGS= --enable-ltdl-install .endif +.if !empty(MACHINE_PLATFORM:MDarwin-*-*) +DLCOMPATDIR= ${WRKDIR}/.dlcompat +DEPENDS+= dlcompat>=20020606:../../devel/dlcompat +EVAL_PREFIX+= DLCOMPAT_PREFIX=dlcompat +DLCOMPAT_PREFIX_DEFAULT= ${LOCALBASE} + +pre-configure: dlcompat-buildlink +dlcompat-buildlink: + cd ${DLCOMPAT_PREFIX}; \ + for file in include/dlfcn.h lib/libdl.*; do \ + if [ -f "$${file}" ]; then \ + ${MKDIR} ${DLCOMPATDIR}/`${DIRNAME} $${file}`; \ + ${LN} -sf ${DLCOMPAT_PREFIX}/$${file} \ + ${DLCOMPATDIR}/$${file}; \ + fi; \ + done +.endif + .include "../../mk/bsd.pkg.mk" -LDFLAGS= # Blank +.if !empty(MACHINE_PLATFORM:MDarwin-*-*) +CPPFLAGS:= -I${DLCOMPATDIR}/include ${CPPFLAGS} +CFLAGS:= -I${DLCOMPATDIR}/include ${CFLAGS} +LDFLAGS= -L${DLCOMPATDIR}/lib +. if ${_USE_RPATH} == "yes" +LDFLAGS+= -Wl,-R${DLCOMPAT_PREFIX}/lib +. endif +.else +LDFLAGS= # empty +.endif |