Wednesday, March 03, 2021

Re: GCC only on OpenBSD adds -L/usr/lib as prefix, why? Re: OpenBSD: Failing to link custom libpng to custom libz, any thoughts how fix?

On Wednesday, 3 March 2021 19:20, Marc Espie <espie@nerim.net> wrote:
> On Wed, Mar 03, 2021 at 06:10:22PM +0000, Bob wrote:
>
> > Does that -L/usr/lib really need to be in the leading position???
>
> I have zero idea how to do that purely in specs. Have fun tinkering.
>
> This is probably something we'll adopt but low priority.

Hi Marc,

Thank you a lot for confirming.

I am talking to Jonathan at the GCC mailing list, and hope to have
figured out soon how to have the -L/usr/lib moved from the beginning
to the end through a change to the spec file. Will share outcome here.

Ref. https://gcc.gnu.org/pipermail/gcc/2021-March/234927.html

>
> > - Where is GCC's default specs file say for AMD64/i386?
>
> somewhere under /usr/lib/gcc-lib or /usr/local/lib/gcc-lib
>
> you can get gcc to spew it out with -dumpspecs.
>
> > - Using what environment variable or GCC command line argument do
> > I specify an alternative one?
> >
>
> Oh come on, just read the man page and /spec :)
>
> -specs=file is fairly prominent.

No comments:

Post a Comment