diff options
author | jlam <jlam@pkgsrc.org> | 2001-10-04 08:00:13 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-10-04 08:00:13 +0000 |
commit | b66ae413cf57bca73cfb111fe0d654de2eb5634f (patch) | |
tree | 46d441c91fd89e41b09cc6bee827759196b86b13 | |
parent | f74c9eaa845dbc510e769738831a8e9667a69f26 (diff) | |
download | pkgsrc-b66ae413cf57bca73cfb111fe0d654de2eb5634f.tar.gz |
Try not to have BUILDLINK_X11_*FLAGS be added multiple times to CFLAGS,
CPPFLAGS, CXXFLAGS, or LDFLAGS.
-rw-r--r-- | mk/x11.buildlink.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/x11.buildlink.mk b/mk/x11.buildlink.mk index 47d98249fab..f00f7ce186b 100644 --- a/mk/x11.buildlink.mk +++ b/mk/x11.buildlink.mk @@ -1,4 +1,4 @@ -# $NetBSD: x11.buildlink.mk,v 1.3 2001/10/01 17:14:40 jlam Exp $ +# $NetBSD: x11.buildlink.mk,v 1.4 2001/10/04 08:00:13 jlam Exp $ # # This Makefile fragment is included by packages that use X11. # @@ -26,6 +26,7 @@ BUILDLINK_X11_DIR?= ${LOCALBASE}/share/x11-links CONFIGURE_ENV+= BUILDLINK_X11_DIR="${BUILDLINK_X11_DIR}" MAKE_ENV+= BUILDLINK_X11_DIR="${BUILDLINK_X11_DIR}" +.if !defined(BUILDLINK_X11_CPPFLAGS) || !defined(BUILDLINK_X11_LDFLAGS) BUILDLINK_X11_CPPFLAGS= -I${BUILDLINK_X11_DIR}/include BUILDLINK_X11_LDFLAGS= -L${BUILDLINK_X11_DIR}/lib -Wl,-R${X11BASE}/lib @@ -37,6 +38,7 @@ CFLAGS+= ${BUILDLINK_X11_CPPFLAGS} CXXFLAGS+= ${BUILDLINK_X11_CPPFLAGS} CPPFLAGS+= ${BUILDLINK_X11_CPPFLAGS} LDFLAGS+= ${BUILDLINK_X11_LDFLAGS} +.endif # Tell packages that use GNU configure where to find the X11R6 headers and # libraries. |