Current-Users archive

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

Re: cross-compiling fails on MacOS



On Mon, Feb 25, 2019 at 06:16:42PM +0300, Valery Ushakov wrote:
> On Mon, Feb 25, 2019 at 15:55:33 +0100, K. Schreiner wrote:
> 
> > tryed to cross-compile NetBSD (amd64) on MacOS and failed with
> > 
> > 
> >      create  compat/.depend
> >      compile  compat/atoll.lo
> > clang: error: unknown argument: '-fno-ipa-sra'
> > Any idea what to change where to get things going?
> [...]
> share/mk/bsd.host.mk has
> 
> # disable compiler options that interfere with dtrace
> HOST_DTRACE_OPTS?=	-fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-ipa-sra
> 
> which should probably be conditionalized depending on what the host
> compiler is, but it doesn't look like we have the infrastructure in
> place.
> 
> For now you can just override it in your local build.
yep, will do! Thanks for very quick answer!

Kurt


Home | Main Index | Thread Index | Old Index