From 8af0300cad9ffa57cde0dd5a0378ff762cf4cdec Mon Sep 17 00:00:00 2001
From: Raymond Toy <toy.raymond@gmail.com>
Date: Mon, 4 Aug 2014 19:00:43 -0700
Subject: [PATCH] Update LDFLAGS for NetBSD so motifd will build and run
 correctly on NetBSD.

Reported by Robert Swindells who also provided the fix.
---
 src/motif/server/Config.NetBSD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/motif/server/Config.NetBSD b/src/motif/server/Config.NetBSD
index 7c58488f3..83591ac53 100644
--- a/src/motif/server/Config.NetBSD
+++ b/src/motif/server/Config.NetBSD
@@ -1,5 +1,5 @@
 CFLAGS = -O2 -I/usr/pkg/include -I/usr/X11R7/include -I. -I$(VPATH)
-LDFLAGS = -L/usr/X11R7/lib -L/usr/pkg/lib
+LDFLAGS = -R/usr/X11R7/lib -L/usr/X11R7/lib -R/usr/pkg/lib -L/usr/pkg/lib
 LIBS = -lXm -lXt -lXext -lX11 -lSM -lICE -lXp
 # This def assumes you are building in the same or parallel
 # tree to the CVS souce layout. Sites may need to customize
-- 
GitLab