summaryrefslogtreecommitdiff
path: root/x11/gtk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>1999-10-07 03:57:51 +0000
committerjlam <jlam@pkgsrc.org>1999-10-07 03:57:51 +0000
commit3bfe98d187c0b821d8fe57611f7bdaa69fc89bd2 (patch)
tree1d2b3e80203f0dd146426cb9dac79263dde46614 /x11/gtk
parente10f3c0b10584701623f6f0602fe7f789548f57d (diff)
downloadpkgsrc-3bfe98d187c0b821d8fe57611f7bdaa69fc89bd2.tar.gz
Ensure that `gtk-config --libs' includes the proper linker flags to
link against X11 libs.
Diffstat (limited to 'x11/gtk')
-rw-r--r--x11/gtk/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/x11/gtk/Makefile b/x11/gtk/Makefile
index 46d10fd64e9..2c917fa35ef 100644
--- a/x11/gtk/Makefile
+++ b/x11/gtk/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 1999/08/28 09:36:31 rh Exp $
+# $NetBSD: Makefile,v 1.34 1999/10/07 03:57:51 jlam Exp $
DISTNAME= gtk+-1.2.4
CATEGORIES= x11
@@ -19,11 +19,16 @@ USE_X11BASE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}"
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" X_LDFLAGS="${X_LDFLAGS}"
INFO_FILES= gdk.info gtk.info
-CPPFLAGS= -I${LOCALBASE}/include
-LDFLAGS= -L${LOCALBASE}/lib
+CPPFLAGS= -I${LOCALBASE}/include # libintl.h
+LDFLAGS= -Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib # -lintl
+
+# The following ensures that `gtk-config --libs' includes the correct linker
+# flags for linking the X11 libs.
+#
+X_LDFLAGS= -Wl,-R${X11BASE}/lib -L${X11BASE}/lib
.include "../../mk/bsd.pkg.mk"