Date: Wed, 11 Sep 2019 19:13:05 +0000 (UTC) From: Jung-uk Kim <jkim@FreeBSD.org> 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 Message-ID: <201909111913.x8BJD5AD073956@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909111913.x8BJD5AD073956>