summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>1999-10-07 03:57:51 +0000
committerjlam <jlam>1999-10-07 03:57:51 +0000
commit60bd95ecf3ef6c339113ddb4915e28f41a044a95 (patch)
tree1d2b3e80203f0dd146426cb9dac79263dde46614
parent2007a783f662e5b93a8aca981fbb942950e07d75 (diff)
downloadpkgsrc-60bd95ecf3ef6c339113ddb4915e28f41a044a95.tar.gz
Ensure that `gtk-config --libs' includes the proper linker flags to
link against X11 libs.
-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"