diff options
author | xtraeme <xtraeme> | 2008-02-19 11:12:51 +0000 |
---|---|---|
committer | xtraeme <xtraeme> | 2008-02-19 11:12:51 +0000 |
commit | 9cb368193e0461e0ff393c9c7505aa14faf41a5e (patch) | |
tree | ee729539fbef1c9b61f7cef585b6e2d182870a8b /mk/buildlink3 | |
parent | 1770a3223cc80fd6476bfd847fbab0bdec4d7f40 (diff) | |
download | pkgsrc-9cb368193e0461e0ff393c9c7505aa14faf41a5e.tar.gz |
Check if BUILDLINK_AUTO_VARS.${_pkg_} is defined before testing it
via !empty. This fixes a problem with gnome-panel and db1.
Diffstat (limited to 'mk/buildlink3')
-rw-r--r-- | mk/buildlink3/bsd.buildlink3.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk index a9745437894..e1504c4c201 100644 --- a/mk/buildlink3/bsd.buildlink3.mk +++ b/mk/buildlink3/bsd.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink3.mk,v 1.200 2008/02/07 21:36:13 rillig Exp $ +# $NetBSD: bsd.buildlink3.mk,v 1.201 2008/02/19 11:12:51 xtraeme Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -354,7 +354,8 @@ BUILDLINK_LIBS= # empty BUILDLINK_CFLAGS= # empty .for _pkg_ in ${_BLNK_PACKAGES} -. if !empty(BUILDLINK_AUTO_VARS.${_pkg_}:M[yY][eE][sS]) +. if defined(BUILDLINK_AUTO_VARS.${_pkg_}) && \ + !empty(BUILDLINK_AUTO_VARS.${_pkg_}:M[yY][eE][sS]) . for _flag_ in ${BUILDLINK_CPPFLAGS.${_pkg_}} . if empty(BUILDLINK_CPPFLAGS:M${_flag_:S/:/\\:/g}) BUILDLINK_CPPFLAGS+= ${_flag_} |