diff options
author | jlam <jlam@pkgsrc.org> | 2004-11-17 19:40:35 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-11-17 19:40:35 +0000 |
commit | 9418b1ff378c1e41a675ba521d4a3b183a824a36 (patch) | |
tree | 08254f0e0f40f845f815e5814d09cdf47f433eb8 /mk/buildlink3 | |
parent | 7c3ec0b902f41e2baad31454988ac401fd6fa9ca (diff) | |
download | pkgsrc-9418b1ff378c1e41a675ba521d4a3b183a824a36.tar.gz |
BUILDLINK_AUTO_LIBS.<pkg> is "yes" or "no" for whether BUILDLINK_LIBS.<pkg>
should automatically be appended to LIBS. It defaults to "yes".
Diffstat (limited to 'mk/buildlink3')
-rw-r--r-- | mk/buildlink3/bsd.buildlink3.mk | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/mk/buildlink3/bsd.buildlink3.mk b/mk/buildlink3/bsd.buildlink3.mk index 4a8ab83e0f0..a9a580c8c4b 100644 --- a/mk/buildlink3/bsd.buildlink3.mk +++ b/mk/buildlink3/bsd.buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.buildlink3.mk,v 1.161 2004/11/12 20:25:41 sketch Exp $ +# $NetBSD: bsd.buildlink3.mk,v 1.162 2004/11/17 19:40:35 jlam Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -261,7 +261,11 @@ ${_depmethod_}+= ${_BLNK_ADD_TO.${_depmethod_}} # compiler/linker so that building against # <pkg> will work. # -# BUILDLINK_LIBS.<pkg> contain -l... (library) options that are +# BUILDLINK_AUTO_LIBS.<pkg> "yes" or "no" for whether BUILDLINK_LIBS.<pkg> +# should automatically be appended to the LIBS +# variable. Defaults to "yes". +# +# BUILDLINK_LIBS.<pkg> contain -l... (library) options that can be # automatically appended to the LIBS # variable when building against <pkg>. # @@ -347,6 +351,7 @@ WRAPPER_VARS+= BUILDLINK_PREFIX.${_pkg_} BUILDLINK_CPPFLAGS.${_pkg_}?= # empty BUILDLINK_LDFLAGS.${_pkg_}?= # empty BUILDLINK_LIBS.${_pkg_}?= # empty +BUILDLINK_AUTO_LIBS.${_pkg_}?= yes BUILDLINK_INCDIRS.${_pkg_}?= include BUILDLINK_LIBDIRS.${_pkg_}?= lib${LIBABISUFFIX} . if !empty(BUILDLINK_DEPMETHOD.${_pkg_}:Mfull) @@ -383,11 +388,13 @@ BUILDLINK_LDFLAGS+= ${_flag_} BUILDLINK_CFLAGS+= ${_flag_} . endif . endfor -. for _flag_ in ${BUILDLINK_LIBS.${_pkg_}} -. if empty(BUILDLINK_LIBS:M${_flag_}) +. if !empty(BUILDLINK_AUTO_LIBS.${_pkg_}:M[yY][eE][sS]) +. for _flag_ in ${BUILDLINK_LIBS.${_pkg_}} +. if empty(BUILDLINK_LIBS:M${_flag_}) BUILDLINK_LIBS+= ${_flag_} -. endif -. endfor +. endif +. endfor +. endif . if !empty(BUILDLINK_INCDIRS.${_pkg_}) . for _dir_ in ${BUILDLINK_INCDIRS.${_pkg_}:S/^/${BUILDLINK_PREFIX.${_pkg_}}\//} . if exists(${_dir_}) |