From owner-freebsd-questions@freebsd.org Tue Jul 14 04:08:21 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 7CCA099C8CC for ; Tue, 14 Jul 2015 04:08:21 +0000 (UTC) (envelope-from vasya.pupkin.bsd@gmail.com) Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) (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 1D1D621C6 for ; Tue, 14 Jul 2015 04:08:21 +0000 (UTC) (envelope-from vasya.pupkin.bsd@gmail.com) Received: by wibud3 with SMTP id ud3so3520946wib.0 for ; Mon, 13 Jul 2015 21:08:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=F+l70WlVZAjAO6YCaKEzxR+bsa3M2UVJ/j/3FIdrlVg=; b=oGXh5Y3qiAmxeYgyef8ZEmgxnHQ7yvU6Iwukd+LU/ltFtAZp7ZQaZfK4gxGX34qZbA 7RP5jNaYq7F0BXwzlcpQJ8YQmFlGaL3KLLQXVCPvHDU5dCQV3UcakuDC7mXbV5ly1yvH Dk8DeS8JJ7mOqhFo9X99WSzL3RUJOL6t3XuMXiB1s+I0ETpUyUowD6xx3ZmINwDhbY08 NqPAp4odf2bFL1mxvgXFxkfqgVUnG+kbUllSVylS08+6uFDGGmHeKeQf/ysyakorI6yb JpVQZKGnZbUopaGLwmzyvpA0AemXd0xXHyh4/J6ikpFGw44eUOoyUjqxJhsgvq+U3InU Otmg== MIME-Version: 1.0 X-Received: by 10.194.185.146 with SMTP id fc18mr70771844wjc.46.1436846898260; Mon, 13 Jul 2015 21:08:18 -0700 (PDT) Received: by 10.27.179.26 with HTTP; Mon, 13 Jul 2015 21:08:18 -0700 (PDT) Date: Tue, 14 Jul 2015 09:08:18 +0500 Message-ID: Subject: How set CFLAGS for individual port? From: =?UTF-8?B?0JLQsNGB0LjQu9C40Lkg0JjQstCw0L3QvtCy0LjRhw==?= To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 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:08:21 -0000 Hi! I have a -CURRENT i386 machine. And my make.conf have build options: CFLAGS= -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} == "/usr/ports/devel/gettext-tools" CFLAGS= -O0 -pipe .endif not works now. It give that error: make: "/etc/make.conf" line 26: Unassociated shell command "CFLAGS = -O0 -pipe -march=pentium-m" make: Fatal errors encountered -- cannot continuemake: "/etc/make.conf" line 26: Unassociated shell command "CFLAGS = -O0 -pipe -march=pentium-m" make: Fatal errors encountered -- cannot continue===>>> 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 = -O0 -pipe -march=pentium-m"Unassociated shell command "CFLAGS = -O0 -pipe -march=pentium-m" make: Fatal errors encountered -- cannot continuemake: Fatal errors encountered -- cannot continue make: stopped in /usr/ports/devel/gettext-tools ===>>> Gathering dependency list for devel/gettext-tools from ports make: "/etc/make.conf" line 26: Unassociated shell command "CFLAGS = -O0 -pipe -march=pentium-m" make: Fatal errors encountered -- cannot continue ===>>> Cannot cd to make: ===>>> Aborting update How can i set various build options for individual ports?