Re: How to build an RPATH into gcc?

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

 



On Sun, May 02, 2004 at 10:18:46PM -0600, llewelly@xxxxxxxxxxxx wrote:
> Adrian Bunk <bunk@xxxxxxxxx> writes:
>...
> > > You have 3 alternatives;
> > > 
> > >     (0) build gcc staticly linked,
> > 
> > Can I link only libintl and libiconv (but not libc) statically?
> > If yes, how?
> 
> I don't think this can be done without serious hacking of the gcc
>     configure and build system.
> 
> You might try setting LDFLAGS to 
>     '/usr/local/libintl.a /usr/local/libiconv.a' before running
>     configure, but I don't think that will work.

If a -R/usr/local/lib (as tried first) in LDFLAGS would have worked,
there was no problem.

> > 
> > >     (1) use LD_LIBRARY_PATH,
> > 
> > That's what I want to avoid, e.g. because this sometimes makes it 
> > non-trivial to compile other software.
> 
> I forgot to mention that you could also use LD_PRELOAD, but that has
>     a similar disadvantage. But LD_PRELOAD allows you to list only
>     specific libraries, instead of whole directories.
>...

LD_PRELOAD can't help with my problem.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux