From owner-svn-ports-all@freebsd.org Wed Sep 11 19:13:06 2019 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1F66ADD6E1; Wed, 11 Sep 2019 19:13:06 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46TBPZ03zpz4KGd; Wed, 11 Sep 2019 19:13:06 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D99ECB08E; Wed, 11 Sep 2019 19:13:05 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x8BJD540073957; Wed, 11 Sep 2019 19:13:05 GMT (envelope-from jkim@FreeBSD.org) Received: (from jkim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x8BJD5AD073956; Wed, 11 Sep 2019 19:13:05 GMT (envelope-from jkim@FreeBSD.org) Message-Id: <201909111913.x8BJD5AD073956@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jkim set sender to jkim@FreeBSD.org using -f From: Jung-uk Kim Date: Wed, 11 Sep 2019 19:13:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r511834 - head/audio/linux-c7-alsa-plugins-oss X-SVN-Group: ports-head X-SVN-Commit-Author: jkim X-SVN-Commit-Paths: head/audio/linux-c7-alsa-plugins-oss X-SVN-Commit-Revision: 511834 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Sep 2019 19:13:06 -0000 Author: jkim Date: Wed Sep 11 19:13:05 2019 New Revision: 511834 URL: https://svnweb.freebsd.org/changeset/ports/511834 Log: Ignore "-march=foo" from CFLAGS when compiling a Linux binary. I have "CPUTYPE?=znver1" in my /etc/make.conf and it broke build because this port uses GCC 4.8.5 and it does not support recent processors. Reviewed by: tijl Modified: head/audio/linux-c7-alsa-plugins-oss/Makefile Modified: head/audio/linux-c7-alsa-plugins-oss/Makefile ============================================================================== --- head/audio/linux-c7-alsa-plugins-oss/Makefile Wed Sep 11 18:50:38 2019 (r511833) +++ head/audio/linux-c7-alsa-plugins-oss/Makefile Wed Sep 11 19:13:05 2019 (r511834) @@ -73,7 +73,7 @@ do-configure: .if !empty(COMPAT32_CFLAGS_${ARCH}) @(cd ${WRKSRC32} && ${AUTORECONF} -f -i && ${SETENV} \ PATH=${LINUXBASE}/usr/bin ./configure CPPFLAGS="${CPPFLAGS}" \ - CFLAGS="${CFLAGS} ${COMPAT32_CFLAGS_${ARCH}}" \ + CFLAGS="${CFLAGS:N-march=*} ${COMPAT32_CFLAGS_${ARCH}}" \ LDFLAGS="${LDFLAGS}" MAKE="${LOCALBASE}/bin/gmake" \ MKDIR_P="${MKDIR}" PKG_CONFIG="${LOCALBASE}/bin/pkgconf" \ PKG_CONFIG_PATH=${LINUXBASE}/usr/lib/pkgconfig \ @@ -81,7 +81,7 @@ do-configure: .endif @(cd ${WRKSRC} && ${AUTORECONF} -f -i && ${SETENV} \ PATH=${LINUXBASE}/usr/bin ./configure CPPFLAGS="${CPPFLAGS}" \ - CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ + CFLAGS="${CFLAGS:N-march=*}" LDFLAGS="${LDFLAGS}" \ MAKE="${LOCALBASE}/bin/gmake" MKDIR_P="${MKDIR}" \ PKG_CONFIG="${LOCALBASE}/bin/pkgconf" \ PKG_CONFIG_PATH=${LINUXBASE}${LIBDIR_${ARCH}}/pkgconfig \