diff options
author | jlam <jlam> | 2008-02-27 06:10:25 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-02-27 06:10:25 +0000 |
commit | ad400e641dec52d1e9c9b24684cf8122372b6a9c (patch) | |
tree | dae8f9cb8c211fd01bc3602f4900b77dccf5b386 /devel/pdcurses | |
parent | 372bf21182682cefb9f80615dc2156f7dd6950d9 (diff) | |
download | pkgsrc-ad400e641dec52d1e9c9b24684cf8122372b6a9c.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/pdcurses')
-rw-r--r-- | devel/pdcurses/buildlink3.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/devel/pdcurses/buildlink3.mk b/devel/pdcurses/buildlink3.mk index c5ee527cc76..177d05bc5e5 100644 --- a/devel/pdcurses/buildlink3.mk +++ b/devel/pdcurses/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.3 2008/02/27 04:47:02 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.4 2008/02/27 06:10:25 jlam Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ PDCURSES_BUILDLINK3_MK:= ${PDCURSES_BUILDLINK3_MK}+ @@ -15,7 +15,7 @@ BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}pdcurses BUILDLINK_API_DEPENDS.pdcurses+= pdcurses>=3.3 BUILDLINK_PKGSRCDIR.pdcurses?= ../../devel/pdcurses BUILDLINK_LIBNAME.pdcurses= XCurses -BUILDLINK_LDADD.pdcurses?= -l${BUILDLINK_LIBNAME.pdcurses} +BUILDLINK_LDADD.pdcurses?= ${BUILDLINK_LIBNAME.pdcurses:S/^/-l/} # _PKG_USE_CURSES is defined by curses.buildlink3.mk to indicate that # the headers and libraries should be usable as <curses.h> and -lcurses. |