Re: rpath problems
- From: John Cupitt ng-london org uk
- To: nlevitt columbia edu
- Cc: gtk-list gnome org
- Subject: Re: rpath problems
- Date: Thu, 4 Jul 2002 11:02:21 +0100
Noah Levitt wrote:
> On Wed, Jul 03, 2002 at 09:42:27PM -0400, Paul Davis wrote:
>
>>it depends on the Makefile, not on gcc. gcc knows nothing about
>>LDFLAGS. and you're not using make in any of the examples above.
>>
>
>
> Ah. I thought I was getting more at the root of the problem,
> but in fact I was doing the opposite, sorry about that.
>
> I did try all those environment settings with make, though,
> and nothing worked.
LD_LIBRARY_PATH is a run-time thing, not compile-time. Try:
gcc fred.c `gtk-config --cflags --libs`
then
LD_LIBRARY_PATH=/opt/xfree86-4.2.0/lib ./a.out
(this is not very portable! eg. HP-UX, Mac OS X, etc. all do this
differently)
I don't know how great a solution this is :-( Instead you might consider
linking statically against X, adding the xf86/lib to your ld.so.conf,
setting LD_LIBRARY_PATH in your .bashrc, or installing X somewhere more
commonly used.
John
==========================================================
Fabric of Vision
Dress and Drapery in Painting
19 June - 8 September 2002
For information and tickets:
http://www.nationalgallery.org.uk/exhibitions/fabric/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]