diff options
author | jschauma <jschauma@pkgsrc.org> | 2003-01-12 20:36:58 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2003-01-12 20:36:58 +0000 |
commit | 638f4888bdada62ddcebfefbe2d1dc113c7d9f92 (patch) | |
tree | 75b93cdbea4c6a56941c4dfb1210ea3a0521cdb9 /mk | |
parent | 40a7af9a13d05ce56f1757424c54ec5570151abc (diff) | |
download | pkgsrc-638f4888bdada62ddcebfefbe2d1dc113c7d9f92.tar.gz |
On Linux, s/i.86/i386/ for LOWER_ARCH and MACHINE_ARCH as suggested by
Jeremy C. Reed on tech-pkg.
Even though bootstrap's bmake will do this at build-time, this ensures
that even older bmake's don't fail if a package checks it for == i386.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.prefs.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index a85d8d1e834..f61012e43b8 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.98 2003/01/05 22:48:12 jlam Exp $ +# $NetBSD: bsd.prefs.mk,v 1.99 2003/01/12 20:36:58 jschauma Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -88,6 +88,8 @@ LOWER_OPSYS?= solaris .elif ${OPSYS} == "Linux" LOWER_OPSYS?= linux +LOWER_ARCH!= echo "${LOWER_ARCH}" | sed -e 's/i.86/i386/' +MACHINE_ARCH!= echo "${MACHINE_ARCH}" | sed -e 's/i.86/i386/' . if ${MACHINE_ARCH} == "unknown" . if !defined(LOWER_ARCH) LOWER_ARCH!= ${UNAME} -m | sed -e 's/[456]86/386/' |