diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2004-11-10 22:31:34 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2004-11-10 22:31:34 +0000 |
commit | c6bc5dc2e6e9b5edc60a9157aaf59acdd78978d7 (patch) | |
tree | 034fb838dfe8ced8b6857525fadab8e6ce799cc5 /gnu/usr.bin/binutils/Makefile.bsd-wrapper | |
parent | 45d70800310e84bfd2ee6cd255c0aa05e8a44535 (diff) |
Put back cross build piece which was lost with the 2.15 upgrade.
Diffstat (limited to 'gnu/usr.bin/binutils/Makefile.bsd-wrapper')
-rw-r--r-- | gnu/usr.bin/binutils/Makefile.bsd-wrapper | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gnu/usr.bin/binutils/Makefile.bsd-wrapper b/gnu/usr.bin/binutils/Makefile.bsd-wrapper index ea599c8faba..a120c378fe3 100644 --- a/gnu/usr.bin/binutils/Makefile.bsd-wrapper +++ b/gnu/usr.bin/binutils/Makefile.bsd-wrapper @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.60 2004/11/02 20:44:57 miod Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.61 2004/11/10 22:31:33 drahn Exp $ NEW_BINUTILS=amd64 alpha arm hppa i386 mips64 powerpc sparc sparc64 @@ -66,7 +66,14 @@ ALL_HOST_MODULES=${SUBDIRS:S/^/all-/g} INSTALL_MODULES=${INST_SUBDIRS:S/^/install-/g} INFO_HOST_MODULES=${SUBDIRS:S/^/info-/g} INSTALL_INFO_HOST_MODULES=${INST_SUBDIRS:S/^/install-info-/g} - + +# cross-compilation +.if defined(TARGET_ARCH) +CONFIGTARGET=--target=${TARGET_ARCH}-unknown-openbsd${OSREV} +.else +CONFIGTARGET= +.endif + all: config.status SUBDIRS='${SUBDIRS}' \ CONFIGURE_HOST_MODULES='${CONFIGURE_HOST_MODULES}' \ @@ -97,7 +104,8 @@ do-config: .USE PATH="/bin:/usr/bin:/sbin:/usr/sbin" \ sh ${.CURDIR}/configure --prefix=${PREFIX} \ --infodir='$${prefix}/share/info' \ - --disable-nls --disable-gdbtk --disable-commonbfdlib ${CF} + --disable-nls --disable-gdbtk --disable-commonbfdlib ${CF} \ + ${CONFIGTARGET} cd ${.OBJDIR} && \ sed -e 's,SUBDIRS *=,SUBDIRS ?=,' <Makefile >Makefile.tmp && \ mv -f Makefile.tmp Makefile |