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 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.


> * 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