diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index b1c392973db4..ad1085e945b3 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.lib.mk,v 1.232 2003/09/13 02:52:05 erh Exp $ +# $NetBSD: bsd.lib.mk,v 1.233 2003/09/13 03:44:20 erh Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .include @@ -17,6 +17,8 @@ COPTS+= ${COPTS.lib${LIB}} CPPFLAGS+= ${CPPFLAGS.lib${LIB}} CXXFLAGS+= ${CXXFLAGS.lib${LIB}} LDADD+= ${LDADD.lib${LIB}} +LDFLAGS+= ${LDFLAGS.lib${LIB}} +LDSTATIC+= ${LDSTATIC.lib${LIB}} ##### Build and install rules CPPFLAGS+= ${DESTDIR:D-nostdinc ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include} diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index c07be82f0d1b..1bf6e091ee8a 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prog.mk,v 1.185 2003/09/13 02:52:05 erh Exp $ +# $NetBSD: bsd.prog.mk,v 1.186 2003/09/13 03:44:21 erh Exp $ # @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94 .ifndef HOSTPROG @@ -17,10 +17,12 @@ realinstall: proginstall scriptsinstall clean: cleanprog ##### PROG specific flags. -COPTS+= ${COPTS.${PROG}} +COPTS+= ${COPTS.${PROG}} CPPFLAGS+= ${CPPFLAGS.${PROG}} CXXFLAGS+= ${CXXFLAGS.${PROG}} LDADD+= ${LDADD.${PROG}} +LDFLAGS+= ${LDFLAGS.${PROG}} +LDSTATIC+= ${LDSTATIC.${PROG}} ##### Default values CPPFLAGS+= ${DESTDIR:D-nostdinc ${CPPFLAG_ISYSTEM} ${DESTDIR}/usr/include}