From owner-svn-ports-head@FreeBSD.ORG Fri Dec 27 10:46:55 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7AE2E17E; Fri, 27 Dec 2013 10:46:55 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 675AD14C4; Fri, 27 Dec 2013 10:46:55 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBRAktrL084547; Fri, 27 Dec 2013 10:46:55 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBRAktVQ084546; Fri, 27 Dec 2013 10:46:55 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201312271046.rBRAktVQ084546@svn.freebsd.org> From: Baptiste Daroussin Date: Fri, 27 Dec 2013 10:46:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337704 - head/Mk X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Dec 2013 10:46:55 -0000 Author: bapt Date: Fri Dec 27 10:46:54 2013 New Revision: 337704 URL: http://svnweb.freebsd.org/changeset/ports/337704 Log: New CFLAGS_${ARCH} and CXXFLAGS_${ARCH} Those are respectively appended to CFLAGS and CXXFLAGS on the matching arches That avoid having to include .pre.mk just for selecting where to add CFLAGS Modified: head/Mk/bsd.port.mk Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Fri Dec 27 10:45:40 2013 (r337703) +++ head/Mk/bsd.port.mk Fri Dec 27 10:46:54 2013 (r337704) @@ -341,6 +341,9 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # USE_CSTD - Override the default C language standard (gnu89, gnu99) # USE_CXXSTD Override the default C++ language standard # USE_BINUTILS - Use binutils suite from port instead of the version in base. +# CFLAGS_${ARCH} Append the cflags to CFLAGS only on the specified architecture +# CXXFLAGS_${ARCH} +# Append the cxxflags to CXXFLAGS only on the specified architecture ## # USE_GHOSTSCRIPT # - If set, this port needs ghostscript to both @@ -2101,10 +2104,18 @@ CFLAGS+= -fno-strict-aliasing CFLAGS:= ${CFLAGS:N-std=*} -std=${USE_CSTD} .endif +.if defined(CFLAGS_${ARCH}) +CFLAGS+= ${CFLAGS_${ARCH}} +.endif + .if defined(USE_CXXSTD) CXXFLAGS:= ${CXXFLAGS:N-std=*} -std=${USE_CXXSTD} .endif +.if defined(CXXFLAGS_${ARCH}) +CXXFLAGS+= ${CXXFLAGS_${ARCH}} +.endif + # Multiple make jobs support .if defined(DISABLE_MAKE_JOBS) || defined(MAKE_JOBS_UNSAFE) _MAKE_JOBS= #