From owner-freebsd-ports@FreeBSD.ORG Fri Mar 16 10:50:01 2012 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66E5E1065676 for ; Fri, 16 Mar 2012 10:50:01 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id ECC7F8FC08 for ; Fri, 16 Mar 2012 10:50:00 +0000 (UTC) Received: by wern13 with SMTP id n13so4943525wer.13 for ; Fri, 16 Mar 2012 03:50:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=ZolhfWHJID54vIRG3rtw2O15VngU2oUrh6xUUhRFKrw=; b=ILLw6Xg43QCsGvqUREthUSrmkhz+RyPTZurvzsag+p99HHOJEBIuLh12pN7ua6GbRF SQtPWwo5Yc4czW0hPmtpdxekcT0Ue/S7wVG6xK9WaQyWSTcrUCICqYUbo+Aapv1caAB7 YVJjBk9odBE8Z/vn5tSPyj+vHXl56zbvDhjcrQfUdzaygK/edXeea5hx4+PUMWqa7saD denbi6K4kvlP+1Hk2GY8BW9G+5hszSVvLDe6NlY2bYHcguJYpLAlKsDNaxsGoVdVQzps vckuBmbYTDz8RkUOOHIbepXQSw7s9M/NoQSLUAVH8Q7ULLIJTaMix65HE3ycKWqM1k9G nt6g== MIME-Version: 1.0 Received: by 10.216.132.222 with SMTP id o72mr1194479wei.95.1331894999994; Fri, 16 Mar 2012 03:49:59 -0700 (PDT) Received: by 10.180.106.42 with HTTP; Fri, 16 Mar 2012 03:49:59 -0700 (PDT) Date: Fri, 16 Mar 2012 10:49:59 +0000 Message-ID: From: "b. f." To: freebsd-ports@FreeBSD.org, Jeremy Messenger Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Re: lang/lua: It does need gmake. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2012 10:50:01 -0000 Jeremy Messenger wrote: > On Thu, Mar 15, 2012 at 6:23 PM, Chuck Swiger wrote: > > On Mar 15, 2012, at 4:18 PM, Jeremy Messenger wrote: > >> Figured out. Add custom CFLAGS in the make.conf and you will get a > >> build failure with make but not gmake. Here's what I have in my > >> make.conf: > >> > >> CFLAGS= -O2 -fno-strict-aliasing -pipe -g > >> STRIP= > > > > Does it work properly if you use "CFLAGS+=" instead? > > It will, but you do not need to put '+' in make.conf. I have same > CFLAGS for years and years, btw. If you have been making these assignments unconditionally, then for years and years you have been in danger of breaking or damaging the builds for many ports that explicitly invoke make(1) more than once (and thus read make.conf more than once), by clobbering prior changes to CFLAGS or STRIP that are made in port makefiles. Despite the misleading examples in the base-system example make.conf, this kind of customization is not supported for Ports, and not encouraged. You should take steps to ensure that your custom values are set only once, before any top-level port Makefile is parsed. You can define them conditionally, or move them to another makefile that is included only once, or disable multiple inclusions of make.conf for Ports by using something like "__MAKE_CONF=/dev/null" in the right place. b.