Subject: pkg/5874: xwrits needs rpath for ELF
To: None <gnats-bugs@gnats.netbsd.org>
From: Tim Rightnour <root@polaris.garbled.net>
List: netbsd-bugs
Date: 07/30/1998 00:39:30
>Number:         5874
>Category:       pkg
>Synopsis:       xwrits needs rpath for ELF
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 30 00:35:00 1998
>Last-Modified:
>Originator:     Tim Rightnour
>Organization:
Tim Rightnour    -  root@garbled.net
http://www.zynetwc.com/~garbled/garbled.html
>Release:        6/10/98<NetBSD-current source date>
>Environment:
	
System: NetBSD polaris 1.3 NetBSD 1.3 (POLARIS) #0: Thu Mar 26 13:17:18 MST 1998 root@polaris:/usr/src/sys/arch/i386/compile/POLARIS i386


>Description:
xwrits needs -R in order to work on alpha (and probably mips).  Added the
define, and found it was missing a USE_X11=yes, added that too.. (which
fixes a $(PREFIX) problem)
	
>How-To-Repeat:
try to run it.. lose.
	
>Fix:
--- Makefile.orig	Thu Jul 30 00:07:12 1998
+++ Makefile	Thu Jul 30 00:07:31 1998
@@ -8,2 +8,3 @@
 
+USE_X11=	yes
 GNU_CONFIGURE=	YES

--- Makefile.in.orig	Thu Jul 30 00:00:00 1998
+++ Makefile.in	Thu Jul 30 00:00:35 1998
@@ -23,3 +23,3 @@
 PROFILING	= 
-LDFLAGS		= @LDFLAGS@
+LDFLAGS		= -Wl,-R$(PREFIX)/lib @LDFLAGS@
 LIBS		= @X_LIBS@ @X_PRE_LIBS@ -lX11 -lm @X_EXTRA_LIBS@

	
>Audit-Trail:
>Unformatted: