From owner-freebsd-ports@freebsd.org Fri Apr 22 03:12:48 2016 Return-Path: Delivered-To: freebsd-ports@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 85C28B18651 for ; Fri, 22 Apr 2016 03:12:48 +0000 (UTC) (envelope-from ohauer@gmx.de) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 6D8951D43 for ; Fri, 22 Apr 2016 03:12:48 +0000 (UTC) (envelope-from ohauer@gmx.de) Received: by mailman.ysv.freebsd.org (Postfix) id 6CF67B18650; Fri, 22 Apr 2016 03:12:48 +0000 (UTC) Delivered-To: ports@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 6CA71B1864F for ; Fri, 22 Apr 2016 03:12:48 +0000 (UTC) (envelope-from ohauer@gmx.de) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C4B111D42; Fri, 22 Apr 2016 03:12:47 +0000 (UTC) (envelope-from ohauer@gmx.de) Received: from [192.168.100.100] ([87.139.233.65]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0LxcbX-1bmfbJ44rr-017H58; Fri, 22 Apr 2016 05:12:39 +0200 Subject: Re: compiling ports with --sysroot= and -isystem To: ports@freebsd.org References: <571986C4.5050303@freebsd.org> Cc: Julian Elischer From: olli hauer Message-ID: <571997EB.9090901@gmx.de> Date: Fri, 22 Apr 2016 05:18:03 +0200 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <571986C4.5050303@freebsd.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:cYvVVm1dKzqvpoF9AaapjohOBxKcNw3QZRbbisedFuLvuaNjdCh 1hDAs9E5tUMfdPRZNtrulQL9tgYW6ijRHxcb8qqbw6kQIfLBh/FmVZawyUtzyrKq1mQfHc2 yKyxMCmqCfJKO05u/u63pXKolHlVZu5tazVvOjI5MSNLC8rDrs3GERqC0TOa0WWCxdrHuWV ygtHdVqBe34Ue6jYB5G1A== X-UI-Out-Filterresults: notjunk:1;V01:K0:yxEQhaQAcHU=:Tg6zflZq6S7d7J/ikdwg2O 8SE2oFDtE9vJQse0As0o+ejmSTGmKq0BZCBYhUXFwxEnK5+kQeCluSTGJarQ3XQXMbQfBDnuq a07ARf04cSjFGDCQK/xXRyPV/YNVdTTTdnR2ZNreWnnMEruRBl3mMT4quFUoYHvI3+S9msPSP hlbKn4/gU90uh9o9Gu/ENfk6WNnzufljoMWmH8RTp4HiiScxqmORjWcTDrhBEjCR8gXBU92Jc l1ld1OeouXfJ45oVba7Sh6uOMtVU/saXrv5AI+Ubh8NeUzq5+0rdlR6if0HJ6VQ8Kch6k3Lsx saDFd32kjUpvmoWQfkKPRqjv8mpZwiFM1nP363snps1Y1DxMMawvehRWBA/fjxyuvXMdlWo3j LN84L7w66a3SuNgT0jDXrN9RtOwvyEQqFtpsPvtFYw77wz9hv1Pgp7QUSPKJgVfpLpv/OYX/Q 8aruIOv9oasKW8Yk5P9Xru2Esx6XtPFbAg5idFiDJYUYnIjBVBCFQZQBu3vReRl9L/qznGZhU iRWjXPEkSaV1Yk+llsodzHikrq75qs+54ofRl5luLNicixVKpM4uOidYPbR5mqqUQz1foEb7B ayXZq2bU6pXvd6YfObs2n1KdpkCC6cxp0a6ts7SldiXRDml9WAb/NrIb5gqc7YfVbnC3tbK1K cNSZrTuBhtWQz+NUCDGIxbGAdXzsn6YzgW3NYn7Mq/vFJhJy98UptndMzBocDAAWl201N3lFy Npubj6vx/QSqdIl1EfTJ/KkCDWX7W6mMSfVoo0HMKmiAtc7LbvlgDvhTyXfeIQcicNJobrqVr u6MQ6sj X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2016 03:12:48 -0000 On 2016-04-22 04:04, Julian Elischer wrote: > How can I add entries (like the above) to a port compile? > I want to ADD things to CFLAGS. > If I add 'CFLAGS=...' to the build (for example, of lsof) it actually replaces all the CFLAGS already there. > lsof (as the example) uses configure, so I would need to feed the added stuff into configure. Is there a standard way to do this? > In the environment I'm using, I'm building for a machine that is not the build machine, but an appliance. > It has a small number of differences in the include file contents, so I want it to compile using a different set of includes than those in /usr/include. > > On the other hand I'm building a bunch of tools that do have t orun on the build machine and they need to use the regular /usr/include so I don't really want to replace them.. > > > Julian > > p.s. usual "please reply directly" comment applies.. I'm on this list but get it in digest form.. > Use the '+=' notation, e.g. # Makefile ... CFLAGS+= "--sysroot=...." ... -- olli