svn commit: r284898 - in head: . share/mk

NGie Cooper yaneurabeya at gmail.com
Sun Jun 28 07:47:28 UTC 2015


On Sun, Jun 28, 2015 at 12:13 AM, Adrian Chadd <adrian.chadd at gmail.com> wrote:
...
>> How is it broken?
>
> ok, I figured out how to get it to work. It's not broken (this time!)
>
> The port cross gcc compiler(s) in freebsd are compiled with
> --without-includes, which removes /usr/include from the search path.
> So unless we specify it, it can't find anything in include paths.
>
> However, if you do -I/usr/include, it is an absolute path. The sysroot
> isn't applied to it.
>
> One must use -I=/usr/include - then the sysroot stuff gets appended correctly.
>
> So now I have dnsmasq and dropbear cross compiling successfully
> against a freebsd-head mips sysroot.
>
> Next up, lua and some tiny http server..
>
> (And yes, we should also fix those linker scripts. :-)

Yes, gcc options are magic... are they being documented on the wiki somewhere?


More information about the svn-src-head mailing list