fix PR/41557: fix src/compat build for 64 bit platforms by building

the 32 bit netpgp lib.
This commit is contained in:
mrg 2009-06-08 15:39:43 +00:00
parent e55354196b
commit 5e0739e774
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,37 @@
# $NetBSD: Makefile,v 1.1 2009/06/08 15:39:43 mrg Exp $
NOLINT= # defined
NOMAN= # defined
NONLS= # defined
NOINFO= # defined
NOSHARE= # defined
LIBDPLIBS= bz2 ${.CURDIR}/../../../../../../lib/libbz2 \
crypt ${.CURDIR}/../../../../../../lib/libcrypt \
z ${.CURDIR}/../../../../../../lib/libz
NOCHECKVER= # defined
.include <bsd.obj.mk>
# Resolve pathnames in variables.
_RESOLVE_VARS= CFLAGS CPPFLAGS DPADD LDADD LIBDPLIBS LIB_ROOT_DIR
.for var in ${_RESOLVE_VARS}
${var}:= ${${var}}
.endfor
_CURDIR:= ${.CURDIR}
.PATH: ${NETBSDSRCDIR}/crypto/external/bsd/netpgp/lib
.CURDIR:= ${NETBSDSRCDIR}/crypto/external/bsd/netpgp/lib
.include "${NETBSDSRCDIR}/compat/Makefile.compat"
.include "${.CURDIR}/Makefile"
# Resolve pathnames from "real" Makefile, and switch .CURDIR back.
_RESOLVE_VARS= CFLAGS CPPFLAGS DPADD LDADD ARCHDIR COMPATDIR COMPATARCHDIR LIBCDIR RPC_INCS RPC_XDIR LIBEDITDIR MODOBJDIR RUMPTOP
.for var in ${_RESOLVE_VARS}
${var}:= ${${var}}
.endfor
.CURDIR:= ${_CURDIR}
.undef _CURDIR

12
compat/crypto/external/lib/Makefile vendored Normal file
View File

@ -0,0 +1,12 @@
# $NetBSD: Makefile,v 1.1 2009/06/08 15:39:44 mrg Exp $
.include <bsd.own.mk>
_CURDIR:= ${.CURDIR}
.include <bsd.own.mk>
.CURDIR:=${NETBSDSRCDIR}/crypto/external/lib
.include "${.CURDIR}/Makefile"
.CURDIR:= ${_CURDIR}