move BUILDLINK_LDFLAGS definition from bl3.mk to builtin.mk -- in theory,

the linker flag should be filtered out by a rule in builtin.mk, but
apparently this doesn't always work. If in builtin.mk, it doesn't get
defined unnecessarily.
This commit is contained in:
drochner 2010-08-30 17:27:11 +00:00
parent 537693ab93
commit 45ee161c1b
2 changed files with 4 additions and 3 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: buildlink3.mk,v 1.10 2009/03/20 19:24:21 joerg Exp $
# $NetBSD: buildlink3.mk,v 1.11 2010/08/30 17:27:11 drochner Exp $
BUILDLINK_TREE+= librfuncs
@ -7,7 +7,6 @@ LIBRFUNCS_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.librfuncs+= librfuncs>=1.0.4
BUILDLINK_PKGSRCDIR.librfuncs?= ../../devel/librfuncs
BUILDLINK_LDFLAGS.librfuncs+= -lrfuncs
.endif # LIBRFUNCS_BUILDLINK3_MK
BUILDLINK_TREE+= -librfuncs

View file

@ -1,4 +1,4 @@
# $NetBSD: builtin.mk,v 1.1 2010/08/09 10:49:28 drochner Exp $
# $NetBSD: builtin.mk,v 1.2 2010/08/30 17:27:11 drochner Exp $
BUILTIN_PKG:= librfuncs
.include "../../mk/buildlink3/bsd.builtin.mk"
@ -40,5 +40,7 @@ CHECK_BUILTIN.librfuncs?= no
.if !empty(CHECK_BUILTIN.librfuncs:M[nN][oO])
. if !empty(USE_BUILTIN.librfuncs:M[yY][eE][sS])
BUILDLINK_TRANSFORM+= rm:-lrfuncs
. else
BUILDLINK_LDFLAGS.librfuncs+= -lrfuncs
. endif
.endif # CHECK_BUILTIN.librfuncs