[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gcc 2.8.1 and the -R option
I think that -R patch should go in.
> On Wed, Mar 11, 1998 at 11:48:54AM -0800, Marco S Hyman wrote:
> > The new gcc doesn't allow the -R flag to be passed to the linker.
> > I didn't keep a copy of the old gcc so I don't know if this is a new
> > behaviour or not. If this was not intentional I believe the fix
> > to be (have not tested it yet):
> This is probably intentional, as the corresponding
> gcc/config/netbsd.h
> DOES have that -R.
>
> > Comments?
>
> I surmise this must have something to do with security. The correct way
> to install library would be to have them in /usr/lib or /usr/local/lib,
> checked by ldconfig ? (wild guess... no idea why this would be).
>
> On a related note, there is an ongoing discussion in the egcs mailing-list
> concerning the use of -R with respect to libstdc++.so.
>
> The problem is, if you install libstdc++.so as your average user, it
> won't be in a directory reachable from ldconfig, so you will have to
> tweak LD_LIBRARY_PATH gcc-lib/specs to obtain the nice result.
> The other nasty problem I see is related to version numbers:
> libstdc++ version number only tracks changes to version, whereas
> g++' name mangling scheme has changed between gcc 2.8.1 and egcs (of
> necessity---egcs needs to support much more intricate template types).
> This means that there are two incompatible libraries with the same name
> and version running wild in the system... I had better watch what I'm
> doing :-(