Date: Sun, 28 Jun 2015 00:47:27 -0700 From: NGie Cooper <yaneurabeya@gmail.com> To: Adrian Chadd <adrian.chadd@gmail.com> Cc: Baptiste Daroussin <bapt@freebsd.org>, "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org> Subject: Re: svn commit: r284898 - in head: . share/mk Message-ID: <CAGHfRMD-5xG%2BA1OL-7bCU5Rzv3ogXf9_o-9rYmn8bqDAUdrabA@mail.gmail.com> In-Reply-To: <CAJ-Vmo=7OhvroDFdaM-0aYz-CRVj_o6LMVx8Rg_C5gzvuhy02g@mail.gmail.com> References: <201506272328.t5RNSvQS063168@svn.freebsd.org> <260A448A-7195-49E6-8CCD-9F0753B61A18@gmail.com> <CAJ-Vmo=0Ewo4Gmh5PPL_rJ7fT7RxvQQ3ebO6wpHKfW_iyDw-fA@mail.gmail.com> <FDBB2B3E-B86A-4324-8E0B-C9D81D9F733B@gmail.com> <CAJ-Vmo=7OhvroDFdaM-0aYz-CRVj_o6LMVx8Rg_C5gzvuhy02g@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 28, 2015 at 12:13 AM, Adrian Chadd <adrian.chadd@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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGHfRMD-5xG%2BA1OL-7bCU5Rzv3ogXf9_o-9rYmn8bqDAUdrabA>