svn commit: r511834 - head/audio/linux-c7-alsa-plugins-oss
Jung-uk Kim
jkim at FreeBSD.org
Wed Sep 11 19:13:06 UTC 2019
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 \
More information about the svn-ports-head
mailing list