If the package uses GNU_CONFIGURE, then automatically add the necessary

options to find the headers and libnbcompat.
This commit is contained in:
jlam 2003-09-02 22:19:03 +00:00
parent 287bd97a65
commit 4ff65f12e6

View file

@ -1,4 +1,4 @@
# $NetBSD: buildlink2.mk,v 1.7 2003/09/02 22:14:51 jlam Exp $
# $NetBSD: buildlink2.mk,v 1.8 2003/09/02 22:19:03 jlam Exp $
.if !defined(LIBNBCOMPAT_BUILDLINK2_MK)
LIBNBCOMPAT_BUILDLINK2_MK= # defined
@ -22,4 +22,10 @@ BUILDLINK_TARGETS+= libnbcompat-buildlink
libnbcompat-buildlink: _BUILDLINK_USE
.if defined(GNU_CONFIGURE)
CPPFLAGS+= ${BUILDLINK_CPPFLAGS.libnbcompat}
CFLAGS+= ${BUILDLINK_CPPFLAGS.libnbcompat}
LIBS+= ${BUILDLINK_LDADD.libnbcompat}
.endif
.endif # LIBNBCOMPAT_BUILDLINK2_MK