summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk/module.defs4
-rw-r--r--make/variant/netbsd.defs1
2 files changed, 5 insertions, 0 deletions
diff --git a/gtk/module.defs b/gtk/module.defs
index 837a3c4fb..8d57cf578 100644
--- a/gtk/module.defs
+++ b/gtk/module.defs
@@ -6,6 +6,10 @@ GTK.build/ = $(BUILD/)gtk/
GTK.CONFIGURE.stamp = $(GTK.build/).stamp.configure
+ifeq ($(HOST.system),netbsd)
+ LDFLAGS += -Wl,-R$(X11BASE)/lib
+endif
+
###############################################################################
GTK.out += $(GTK.CONFIGURE.stamp)
diff --git a/make/variant/netbsd.defs b/make/variant/netbsd.defs
index 6f7a8bfbe..d20db8350 100644
--- a/make/variant/netbsd.defs
+++ b/make/variant/netbsd.defs
@@ -1,5 +1,6 @@
# LOCALBASE is where NetBSD packages are installed. default is '/usr/pkg'.
LOCALBASE ?= /usr/pkg
+X11BASE ?= /usr/X11R7
TARGET.dylib.ext = .so