libtool
[Top][All Lists]
Advanced

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

Re: Using -Bsymbolic with libtool


From: Ganesan Rajagopal
Subject: Re: Using -Bsymbolic with libtool
Date: 10 May 2001 08:41:30 +0530
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>>>> "Robert" == Robert Boehne <address@hidden> writes:

> I think you can get the exact same result by using the
> -Wl,-Bsymbolic flag.  It will be recognized by Libtool,
> and passed to the linker.  -Xlinker is a gcc equivalent
> to -Wl, so if I recall correctly, that would only work
> when using GCC.  If using -Wl,-Bsymbolic does the trick
> even whey you're using libtool, then there is no need
> to alter Libtool.

I know about the -Wl flag. I some how got the idea that -Xlinker is a
libtool flag which will use the appropriate option to pass it to the linker,
I don't where I got that idea - it's obviously a gcc specific option. 

>   As for $ORIGIN, I think the same applies, just add
> -R $ORIGIN to your links.

> `-R LIBDIR'
>      If OUTPUT-FILE is a program, add LIBDIR to its run-time path.  If
>      OUTPUT-FILE is a library, add -RLIBDIR to its DEPENDENCY_LIBS, so
>      that, whenever the library is linked into a program, LIBDIR will
>      be added to its run-time path.

Unfortunately that's not very portable. Tru64 needs -rpath as the flag, not
-R. 

Ganesan

-- 
R. Ganesan (address@hidden)       | Ph: 91-80-5731856 Ext: 2149
Novell India Development Center.       | #include <std_disclaimer.h>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]