summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-02-27 06:10:25 +0000
committerjlam <jlam@pkgsrc.org>2008-02-27 06:10:25 +0000
commit02629b7349f729b562b5f21762c64706c0f91a34 (patch)
treedae8f9cb8c211fd01bc3602f4900b77dccf5b386 /mk
parentf686df4e6c1895ff3eada380075cdc6d8854c01a (diff)
downloadpkgsrc-02629b7349f729b562b5f21762c64706c0f91a34.tar.gz
Protect against possibly empty BUILDLINK_LIBNAME.* variables when
defining BUILDLINK_LDADD.* by using a substitution instead of directly prepending "-l".
Diffstat (limited to 'mk')
-rw-r--r--mk/termlib.buildlink3.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/termlib.buildlink3.mk b/mk/termlib.buildlink3.mk
index 352e1512c48..bd9d8a5e073 100644
--- a/mk/termlib.buildlink3.mk
+++ b/mk/termlib.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: termlib.buildlink3.mk,v 1.1 2008/02/27 04:47:02 jlam Exp $
+# $NetBSD: termlib.buildlink3.mk,v 1.2 2008/02/27 06:10:25 jlam Exp $
#
# This Makefile fragment is meant to be included by packages that require
# a basic termlib implementation.
@@ -39,7 +39,7 @@ BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ntermlib}
BUILDLINK_PACKAGES+= termlib
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}termlib
BUILDLINK_LIBNAME.termlib?= termcap
-BUILDLINK_LDADD.termlib?= -l${BUILDLINK_LIBNAME.termlib}
+BUILDLINK_LDADD.termlib?= ${BUILDLINK_LIBNAME.termlib:S/^/-l/}
BUILDLINK_BUILTIN_MK.termlib= ../../mk/termlib.builtin.mk
.elif ${TERMLIB_TYPE} == "curses"
. include "../../mk/curses.buildlink3.mk"