pkgsrc-Users archive

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

Re: sudo 1.8.15 fails to build on Darwin (-static-libgcc weirdness)



On Sun, Jan 03, 2016 at 11:34:06AM -0500, Greg Troxel wrote:
> 
> Andreas Kusalananda Kähäri <andreas.kahari%icm.uu.se@localhost> writes:
> 
> >     checking whether C compiler accepts -static-libgcc... yes
> >     [...]
> >     clang: error: unsupported option '-static-libgcc'
> 
> There was a recent issue in postgis that seems similar.  Basically,
> clang (and maybe others) passes linker options to the linker, so
> compiling with -c does not link and therefore does not test the flag,
> resulting in a false pass.  In postgis the fix was to change the
> autoconf test to be for a linker flag.

Not exactly. GCC established the practise of passing random unknown junk
to the linker and mostly ignoring it otherwise. It has become a race to
the bottom for which flags to support and not.

Joerg


Home | Main Index | Thread Index | Old Index