egcs (1.1.1) for BSD/OS 4.0
Jeffrey A Law
law@hurl.cygnus.com
Mon Mar 1 23:47:00 GMT 1999
In message < 14043.13767.394972.821576@ballista.eng.us.uu.net >you write:
>
> Hi. I've put together a few patches for getting egcs (originally
> the 1.1.1 release) working properly on BSD/OS 4.0 systems (both x86
> and sparc).
>
> Most of the stuff I have will be normal; patches to configure,
> configure.in, config.guess, ltconfig, etc. And, the addition of one
> files in each gcc/config/arch dir...
>
> The one additional change I needed to get it to link against
> dynamically shared libraries was that I needed to change the way
> collect2 invoked ld. On this system at least, the ld (which is a
> modified GNU ld 2.8.1) behaves differently if you invoke it as
> "/usr/bin/ld" instead of "ld". I think it assumes it's a
> cross-compiler when invoked with a full path, and the method it uses
> to look for libraries changes. The first place it looks after
> finishing the -L args is in "/usr/bin/../lib/", instead of when
> invoked as "ld" it looks in "/shlib/". Looking this way causes it to
> find the /usr/lib/libXX.a libs in preference to the (desired) shared
> libraries in /shlib/libXX.so.
I would think a cleaner solution to this problem would be to change
LINK_SPEC and/or LIB_SPEC for your port.
Note you'll probably need to deal with the copyright assignment issues
before we could install the changes for BSD/OS 4.0. I can't say for
certain without seeing the patches though.
See:
http://egcs.cygnus.com/contribute.html
jeff
More information about the Gcc-patches
mailing list