Date: Sat, 28 Nov 2020 03:48:07 +0000 (UTC) From: Piotr Kubaj <pkubaj@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r556476 - head/deskutils/xneur Message-ID: <202011280348.0AS3m7oo090656@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pkubaj Date: Sat Nov 28 03:48:06 2020 New Revision: 556476 URL: https://svnweb.freebsd.org/changeset/ports/556476 Log: deskutils/xneur: only add -fnested-functions when using base GCC This fixes build on powerpc64 elfv2, probably also other architectures that recently switched to clang. Modified: head/deskutils/xneur/Makefile Modified: head/deskutils/xneur/Makefile ============================================================================== --- head/deskutils/xneur/Makefile Sat Nov 28 03:23:18 2020 (r556475) +++ head/deskutils/xneur/Makefile Sat Nov 28 03:48:06 2020 (r556476) @@ -27,12 +27,6 @@ USE_XORG= xtst WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-static --libdir=${PREFIX}/lib/xneur --with-gtk=gtk2 -CFLAGS_mips= -fnested-functions -CFLAGS_mips64= -fnested-functions -CFLAGS_powerpc= -fnested-functions -CFLAGS_powerpcspe= -fnested-functions -CFLAGS_powerpc64= -fnested-functions -CFLAGS_sparc64= -fnested-functions USE_LDCONFIG= ${PREFIX}/lib/xneur ${PREFIX}/lib/xneur/xneur INSTALLS_ICONS= yes @@ -61,8 +55,14 @@ SOUND_USES= openal:al,alut SOUND_CONFIGURE_ON= --with-sound=openal SOUND_CONFIGURE_OFF= --with-sound=no +.include <bsd.port.pre.mk> + +.if ${COMPILER_VERSION} == 42 +CFLAGS+= -fnested-functions +.endif + post-patch: @${REINPLACE_CMD} -e 's,-Werror,,g; s,-ldl,,g' ${WRKSRC}/configure @${MV} ${WRKSRC}/etc/xneurrc ${WRKSRC}/etc/xneurrc.sample -.include <bsd.port.mk> +.include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011280348.0AS3m7oo090656>