On Sun, Jun 28, 2015 at 12:13 AM, Adrian Chadd <adrian.ch...@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?
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to