diff --git a/src/motif/server/Config.NetBSD b/src/motif/server/Config.NetBSD
index 7c58488f329a834392bfcf4ce5c8807294c43b44..83591ac537577e2082ff0f958e8d65ab2b713cd8 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