From 72b8046267997b2717726eab242b906bc60848bd Mon Sep 17 00:00:00 2001 From: grant Date: Mon, 14 Apr 2003 00:28:17 +0000 Subject: only assume GNU toolchain on Linux and BSD and use try to use sane defaults for "unknown" platforms. drop unneeded parens, whitespace police. (the last update was broken, oops) --- lang/gcc/Makefile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'lang/gcc/Makefile') diff --git a/lang/gcc/Makefile b/lang/gcc/Makefile index c99ec81076a..5ec0c8873b3 100644 --- a/lang/gcc/Makefile +++ b/lang/gcc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.54 2003/04/14 00:20:50 grant Exp $ +# $NetBSD: Makefile,v 1.55 2003/04/14 00:28:17 grant Exp $ # Make sure that the version number in "Makefile.gcc" matches this. DISTNAME= gcc-2.95.3 @@ -44,11 +44,7 @@ PLIST_SRC= ${PKGDIR}/PLIST.SunOS ALL_TARGET= bootstrap . endif # we know it's a GNU toolchain on Linux and the BSDs. -.elif - ${OPSYS} == "FreeBSD" || \ - ${OPSYS} == "Linux" || \ - ${OPSYS} == "NetBSD" || \ - ${OPSYS} == "OpenBSD" +.elif ${OPSYS:M*BSD} != "" || ${OPSYS} == "Linux" CONFIGURE_ARGS+= --with-gnu-as CONFIGURE_ARGS+= --with-gnu-ld CONFIGURE_ARGS+= --infodir=${PREFIX}/info @@ -61,7 +57,7 @@ GCC_PREFIX= ${PREFIX}/${PKGNAME} PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC # play it safe, force a bootstrap build if we don't know for sure it # is gcc. -. if (${OPSYS} != "FreeBSD" && ${OPSYS} != "OpenBSD") && ${CC:M*gcc*} == "" +. if ${CC:M*gcc*} == "" ALL_TARGET= bootstrap . endif .endif -- cgit v1.2.3