summaryrefslogtreecommitdiff
path: root/lang/gcc/Makefile
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-04-14 00:28:17 +0000
committergrant <grant@pkgsrc.org>2003-04-14 00:28:17 +0000
commit72b8046267997b2717726eab242b906bc60848bd (patch)
tree4f2ca33e35cf07724c101b449f0211f44ce5e8bf /lang/gcc/Makefile
parente54d67ee6144fd3d016c386b963fe11d56ee89e9 (diff)
downloadpkgsrc-72b8046267997b2717726eab242b906bc60848bd.tar.gz
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)
Diffstat (limited to 'lang/gcc/Makefile')
-rw-r--r--lang/gcc/Makefile10
1 files changed, 3 insertions, 7 deletions
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