diff options
author | fredb <fredb@pkgsrc.org> | 2002-05-26 15:00:25 +0000 |
---|---|---|
committer | fredb <fredb@pkgsrc.org> | 2002-05-26 15:00:25 +0000 |
commit | f1ae32bea9221eb637f7ab75c3e5d5d70aaf21d4 (patch) | |
tree | 10ddbfa8edd0c3e8937f248506130e3bc16fb69b /mk | |
parent | 7be3d97175c4935027269abeb114f6075119241a (diff) | |
download | pkgsrc-f1ae32bea9221eb637f7ab75c3e5d5d70aaf21d4.tar.gz |
Pass ${OBJECT_FMT} into a package's make environment, to permit BSD-make
packages to build correctly on "transitional" systems, where the user
may have ${OBJECT_FMT} set in ${MAKECONF} to either a.out or ELF. On such
systems, you need something like this just to build the "pkg_install"
package. Closes PR pkg/16213.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 326a7535e5f..888b96af1b0 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.982 2002/05/22 23:15:22 hubertf Exp $ +# $NetBSD: bsd.pkg.mk,v 1.983 2002/05/26 15:00:25 fredb Exp $ # # This file is in the public domain. # @@ -30,6 +30,13 @@ MAKE_ENV+= MAKECONF=/dev/null MAKE_ENV+= USETOOLS="${USETOOLS}" .endif +##### Some NetBSD platforms permitted the user to set the binary format while +##### they were in the process of transitioning to ELF. Packages with BSD-style +##### make systems need this setting to be passed in. +.if defined(OBJECT_FMT) +MAKE_ENV+= OBJECT_FMT="${OBJECT_FMT}" +.endif + ##### Build crypto packages by default. MKCRYPTO?= yes |