diff options
author | jlam <jlam@pkgsrc.org> | 2002-09-30 21:23:55 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-09-30 21:23:55 +0000 |
commit | 37a594434003d3b5a617ca53e430033eedea2452 (patch) | |
tree | 929504c6e813b82808711e434ee3fecbdcd76c4b /cross/COMMON | |
parent | 812f50663f2f9ed18202cc4eefdc27b14ad43190 (diff) | |
download | pkgsrc-37a594434003d3b5a617ca53e430033eedea2452.tar.gz |
Adapt for buildlink2 usage, and fix up CFLAGS/CXXFLAGS so that they don't
carry optimizations for the native compiler.
Diffstat (limited to 'cross/COMMON')
-rw-r--r-- | cross/COMMON/cross.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cross/COMMON/cross.mk b/cross/COMMON/cross.mk index 87258eb5dae..7483010c946 100644 --- a/cross/COMMON/cross.mk +++ b/cross/COMMON/cross.mk @@ -1,7 +1,9 @@ -# $NetBSD: cross.mk,v 1.23 2001/12/15 20:25:35 agc Exp $ +# $NetBSD: cross.mk,v 1.24 2002/09/30 21:23:55 jlam Exp $ # Shared definitions for building a cross-compile environment. +.include "../../mk/bsd.prefs.mk" + DISTNAME= cross-${TARGET_ARCH}-${DISTVERSION} CATEGORIES+= cross lang USE_CROSSBASE= yes @@ -28,10 +30,18 @@ pre-install-dirs: BINUTILS_DISTNAME= binutils-2.9.1 BINUTILS_WRKSRC= ${WRKDIR}/${BINUTILS_DISTNAME} +# Don't use optimizations taken from /etc/mk.conf for the native compiler +CFLAGS= # empty +CXXFLAGS= # empty + CROSS_DISTFILES+= ${BINUTILS_DISTNAME}.tar.gz MASTER_SITES+= ${MASTER_SITE_GNU:=binutils/} CONFIGURE_ARGS+= --with-gnu-as --with-gnu-ld +.if defined(USE_BUILDLINK2) +. include "../../cross/binutils/buildlink2.mk" +.else DEPENDS+= cross-binutils>=2.9.1.1:../../cross/binutils +.endif PLIST_PRE+= ${COMMON_DIR}/PLIST-binutils AS_FOR_TARGET= ${BINUTILS_WRKSRC}/gas/as-new |