From owner-svn-src-all@freebsd.org Sun Jun 28 07:47:28 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 74E9E98E547; Sun, 28 Jun 2015 07:47:28 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-qk0-x22e.google.com (mail-qk0-x22e.google.com [IPv6:2607:f8b0:400d:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 325631B22; Sun, 28 Jun 2015 07:47:28 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by qkbp125 with SMTP id p125so78755293qkb.2; Sun, 28 Jun 2015 00:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Fj3GFHrOOb4Sy0xohEKmLmLV7l4dTL32oTTycOAyIbA=; b=ohVwFO//HrXmK+Z0XN2Gjl/T6DHyS9WQG1q7IRFgUNQYlzg14WN3tKqBK/PD+28/R8 f0/AhGKT9Cu6QhAwOnvYvLfnl/NCtJQIb9+sP+YlUBxQbmG5LMXpH49bopJ0Orc+YNyX 4dokjy/yWFPHcm/U5DfkrvrX4nvh+fWjENChiZW9lb5X7JVm0FEr0hldxng6kNFYAcFv 7KUlakGnOsrTcotAmgFOR6aE50fzYEqNhPc3Eglsrp4qMGKcDmz+feDa4/gbzr5i88PN ggHWSfycc231xyGAXVsqvW3Zplpc+hP0NrdkwTv7/SAT2IuqVKvs65dyhH40jIH9J5Ly qhVg== MIME-Version: 1.0 X-Received: by 10.55.21.42 with SMTP id f42mr20173407qkh.96.1435477647485; Sun, 28 Jun 2015 00:47:27 -0700 (PDT) Received: by 10.140.98.73 with HTTP; Sun, 28 Jun 2015 00:47:27 -0700 (PDT) In-Reply-To: References: <201506272328.t5RNSvQS063168@svn.freebsd.org> <260A448A-7195-49E6-8CCD-9F0753B61A18@gmail.com> Date: Sun, 28 Jun 2015 00:47:27 -0700 Message-ID: Subject: Re: svn commit: r284898 - in head: . share/mk From: NGie Cooper To: Adrian Chadd Cc: Baptiste Daroussin , "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2015 07:47:28 -0000 On Sun, Jun 28, 2015 at 12:13 AM, Adrian Chadd 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?