summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorgavan <gavan@pkgsrc.org>2003-10-02 15:45:31 +0000
committergavan <gavan@pkgsrc.org>2003-10-02 15:45:31 +0000
commita50a7200b7236f9ddd7f3ad128d5e6ca92141d03 (patch)
treef5efd7dab30eb65bc9ca697ac8d1903ea5436866 /mk
parentfd24691836a20caceebe02c4559e375cd2e06c16 (diff)
downloadpkgsrc-a50a7200b7236f9ddd7f3ad128d5e6ca92141d03.tar.gz
Allow variables to be set on a per-OS basis.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 72f5087e323..7a991914539 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1292 2003/10/02 14:41:42 gavan Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1293 2003/10/02 15:45:31 gavan Exp $
#
# This file is in the public domain.
#
@@ -74,6 +74,16 @@ build-defs-message: ${WRKDIR}
MAKE_ENV+= OBJECT_FMT="${OBJECT_FMT}"
.endif
+# Allow variables to be set on a per-OS basis
+OPSYSVARS+= CFLAGS CPPFLAGS LDFLAGS LIBS
+.for _var_ in ${OPSYSVARS:O}
+. if defined(${_var_}.${OPSYS})
+${_var_}+= ${${_var_}.${OPSYS}}
+. elif defined(${_var_}.*)
+${_var_}+= ${${_var_}.*}
+. endif
+.endfor
+
##### Build crypto packages by default.
MKCRYPTO?= yes