summaryrefslogtreecommitdiff
path: root/devel/ncurses
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 /devel/ncurses
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 'devel/ncurses')
-rw-r--r--devel/ncurses/buildlink3.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/ncurses/buildlink3.mk b/devel/ncurses/buildlink3.mk
index 0b79c893f24..0b80496084f 100644
--- a/devel/ncurses/buildlink3.mk
+++ b/devel/ncurses/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.30 2008/02/27 04:47:02 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.31 2008/02/27 06:10:25 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
NCURSES_BUILDLINK3_MK:= ${NCURSES_BUILDLINK3_MK}+
@@ -16,7 +16,7 @@ BUILDLINK_API_DEPENDS.ncurses+= ncurses>=5.3nb1
BUILDLINK_ABI_DEPENDS.ncurses+= ncurses>=5.4nb1
BUILDLINK_PKGSRCDIR.ncurses?= ../../devel/ncurses
BUILDLINK_LIBNAME.ncurses= ncurses
-BUILDLINK_LDADD.ncurses?= -l${BUILDLINK_LIBNAME.ncurses}
+BUILDLINK_LDADD.ncurses?= ${BUILDLINK_LIBNAME.ncurses:S/^/-l/}
# Many packages expect the ncurses headers and libraries to be usable as
# <curses.h> and -lcurses.