Subject: Re: pkg-config files
To: Patrick Welche <prlw1@newn.cam.ac.uk>
From: Matthieu Herrb <matthieu.herrb@laas.fr>
List: tech-x11
Date: 10/27/2003 23:11:39
You wrote (in your message from Sunday 26)
 > What are your views on this sort of thing?
 > 
 > Cheers,
 > 
 > Patrick
 > 
 > Index: Xcursor/xcursor.pc.in
 > ===================================================================
 > RCS file: /cvsroot/xsrc/xfree/xc/lib/Xcursor/xcursor.pc.in,v
 > retrieving revision 1.1.1.1
 > diff -u -r1.1.1.1 xcursor.pc.in
 > --- xcursor.pc.in	2003/02/28 13:18:51	1.1.1.1
 > +++ xcursor.pc.in	2003/10/26 18:48:55
 > @@ -7,5 +7,5 @@
 >  Description: X Cursor library
 >  Version: @PACKAGE_VERSION@
 >  Requires:
 > -Libs: -L${libdir} -lXcursor
 > +Libs: -Wl,-R${libdir} -L${libdir} -lXcursor
 >  Cflags: -I${includedir}

Hmm after some reflexion (and trying to handle XFree86 Bugzilla #832)
it seems more or less useless to me. 

The current X applications in xsrc/xfree/xc/programs are not linked
with -R/usr/X11R6/lib, assuming that /usr/X11R6/lib is in the ld.so
default search path anyways. I don't see why packages should be
different. 

If X apps should not assume that, then NetBSD.cf should define
ExtraLoadFlags too. (See FreeBSD.cf and sco.cf for the 2 only systems
already doing that). 
-- 
					Matthieu