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

Re: gEDA: gschem rpath autoconf test



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Am 18.01.2005 um 02:58 schrieb Ales Hvezda:

> Hi Dan,
>
>> I noticed that gschem's configure script won't set the required
>> -Rpath or -Wl,--rpath, or whatever flags needed to set the runtime
>> path to the X11 libraries.  The attached patch adds that check
>> and it seems to work fine.  Without this, you have to
>> manually set LDFLAGS in your configure environmnet or set 
>> LD_LIBRARY_PATH
>> on solaris and other os's.

I hope, this really works. I really am loocking forward to seeing int 
working on first try. :-)

> 	I have no problem with this, as long as this doesn't force
> rpath on other platforms where it is discouraged.

On what platforms is using of RPATH discouraged?

Using RPATH is not a matter of advice or platfom but of necessity. 
Either setting rpath is required for an appication to access a specific 
lib or it is not. This is not a matter of the platform used but of a 
configuration decision of the person, that installed that library.

For any program that depends on libraries other than the basic system 
ones (-lc, -lm, -lresolv, ...), configure should check wether linking 
with -lfoo requires setting rpath or not.

My suggestion is to first compile the probe programs with rpath and if 
the probes show, that lib is available and usable to do additional test 
to determine, wether rpath componentes can be safely omitted.

73, Mario
- -- 
Mario Klebsch                                           mario@klebsch.de
PGP-Key available at http://www.klebsch.de/public.key
Fingerprint DSS: EE7C DBCC D9C8 5DC1 D4DB  1483 30CE 9FB2 A047 9CE0
  Diffie-Hellman: D447 4ED6 8A10 2C65 C5E5  8B98 9464 53FF 9382 F518
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFB7XspMM6fsqBHnOARAss8AJ9QALNZhQXu3EgmFVbk2SnDuzUh3wCdE59X
4tlbmDLZ0pc/bK9S3cYhuRQ=
=F7kG
-----END PGP SIGNATURE-----