From owner-freebsd-questions@freebsd.org Tue Jul 14 04:54:58 2015 Return-Path: Delivered-To: freebsd-questions@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 8CB669245 for ; Tue, 14 Jul 2015 04:54:58 +0000 (UTC) (envelope-from vasya.pupkin.bsd@gmail.com) Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [IPv6:2a00:1450:400c:c00::231]) (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 13FC92686 for ; Tue, 14 Jul 2015 04:54:58 +0000 (UTC) (envelope-from vasya.pupkin.bsd@gmail.com) Received: by wgmn9 with SMTP id n9so58264375wgm.0 for ; Mon, 13 Jul 2015 21:54:56 -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=GjHd/jx7QiNXeRdlXrAfmspaVhVfxtIagwNjLubFVSQ=; b=psA9KL3/Ad9WfeUPP7BH8SurbwDsxL7FkyQCmHN+K3Nf7NXvhslDr5AF5PmhG/lhfT CBafqgHBWsQ0OJOhuHRiWlQqsmQXHaTVJ6OgRvltCLW77ZgYhNDYtbB+xiWRwWNgxKLk f8KiMrMHbtj0m2ybOfC6xk/7g7X7AZvwAIZ+Ffb/jvaaFZbC8iskipOf8Yp9vmmxrjdx xhBPctNsgySsCtKKaXPC787+ooCPf9LBuGjkdRcc4/ASGK5Z7SfL2c6qZV84zF0hv1pq mHOuMqdhNMGEBED5CYLMnLXSdWQWIxmgaOtuGBsvTQIrRl0rcbYlCjO//X5GM41rAEBt Fmiw== MIME-Version: 1.0 X-Received: by 10.194.178.5 with SMTP id cu5mr3335086wjc.59.1436849696243; Mon, 13 Jul 2015 21:54:56 -0700 (PDT) Received: by 10.27.179.26 with HTTP; Mon, 13 Jul 2015 21:54:56 -0700 (PDT) In-Reply-To: <20150714063511.6e167ffb.freebsd@edvax.de> References: <20150714063511.6e167ffb.freebsd@edvax.de> Date: Tue, 14 Jul 2015 09:54:56 +0500 Message-ID: Subject: Re: How set CFLAGS for individual port? From: =?UTF-8?B?0JLQsNGB0LjQu9C40Lkg0JjQstCw0L3QvtCy0LjRhw==?= To: Polytropon Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2015 04:54:58 -0000 2015-07-14 9:35 GMT+05:00 Polytropon : > On Tue, 14 Jul 2015 09:08:18 +0500, =D0=92=D0=B0=D1=81=D0=B8=D0=BB=D0=B8= =D0=B9 =D0=98=D0=B2=D0=B0=D0=BD=D0=BE=D0=B2=D0=B8=D1=87 wrote: > > Hi! > > > > I have a -CURRENT i386 machine. And my make.conf have build options: > > CFLAGS=3D -Os -pipe > > But some ports not builds by clang 3.6.1 with any optimizations except > -O0 > > (for example devel/gettext-tools), and solution for older BSD versions: > > .if ${.CURDIR} =3D=3D "/usr/ports/devel/gettext-tools" > > CFLAGS=3D -O0 -pipe > > .endif > > > > not works now. It give that error: > > make: "/etc/make.conf" line 26: Unassociated shell command "CFLAGS = =3D > > -O0 -pipe -march=3Dpentium-m" > > make: Fatal errors encountered -- cannot continuemake: "/etc/make.conf" > > line 26: Unassociated shell command "CFLAGS =3D -O0 -pipe > > -march=3Dpentium-m" > > make: Fatal errors encountered -- cannot continue=3D=3D=3D>>> Launching= 'make > > checksum' for devel/gettext-tools in background > > make: make: ""/etc/make.conf/etc/make.conf" line 26: " line 26: > > Unassociated shell command "CFLAGS =3D -O0 -pipe > > -march=3Dpentium-m"Unassociated shell command "CFLAGS =3D -O0 -pipe > > -march=3Dpentium-m" > > > > make: Fatal errors encountered -- cannot continuemake: Fatal errors > > encountered -- cannot continue > > make: stopped in /usr/ports/devel/gettext-tools > > =3D=3D=3D>>> Gathering dependency list for devel/gettext-tools from por= ts > > make: "/etc/make.conf" line 26: Unassociated shell command "CFLAGS = =3D > > -O0 -pipe -march=3Dpentium-m" > > make: Fatal errors encountered -- cannot continue > > =3D=3D=3D>>> Cannot cd to make: > > =3D=3D=3D>>> Aborting update > > > > How can i set various build options for individual ports? > > Try this: > > .if ${.CURDIR:M*/devel/gettext-tools*} > CFLAGS=3D -O0 -pipe > .endif > > This will apply CFLAGS as intended (and therefore discard any > other CFLAGS setting) for the port at its top level as well as > any subdirectories. > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > Thanks Polytropon! I'm tryin your suggestion and it gives me error againg. After that I'm tryin to delete TAB aligment before CFLAGS=3D... and it works! Sorry for my mistake :)