Re: Portability and distribution with Gtk+ 1.3



On 17 Apr 2001 12:45:45 -0400, Havoc Pennington wrote:
> 
> Dan Winship <danw ximian com> writes:
> > > export LD_LIBRARY_PATH=$prefix/lib:$LD_LIBRARY_PATH
> > 
> > A nice fix for this would be to make pkg_config output -R flags along
> > with the -L flags on operating systems where you're going to want that.
> > ("-R" isn't generically correct, but you can apply cleverness to the
> > output of "libtool --config")
> > 
> 
> This has been discussed in the past, apparently it's fairly
> complicated to get exactly right (I have some old mail about it I
> could dig up...)

This seems to work:

danw twelve-monkeys:~> libtool --config > /tmp/foo
danw twelve-monkeys:~> echo 'libdir= LIBDIR@' >> /tmp/foo
danw twelve-monkeys:~> echo 'echo `eval echo $hardcode_libdir_flag_spec`' >> /tmp/foo
danw twelve-monkeys:~> sh /tmp/foo
-Wl,--rpath -Wl,@LIBDIR@

It's probably possible to do this without creating a temp file...

-- Dan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]