From owner-svn-ports-all@freebsd.org Sat Nov 28 03:48:07 2020 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 8420C474CA6; Sat, 28 Nov 2020 03:48:07 +0000 (UTC) (envelope-from pkubaj@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4CjcsM3K2rz4rkn; Sat, 28 Nov 2020 03:48:07 +0000 (UTC) (envelope-from pkubaj@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 6552520AC2; Sat, 28 Nov 2020 03:48:07 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0AS3m7BA090657; Sat, 28 Nov 2020 03:48:07 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0AS3m7oo090656; Sat, 28 Nov 2020 03:48:07 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <202011280348.0AS3m7oo090656@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Sat, 28 Nov 2020 03:48:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r556476 - head/deskutils/xneur X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/deskutils/xneur X-SVN-Commit-Revision: 556476 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.34 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: Sat, 28 Nov 2020 03:48:07 -0000 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 + +.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 +.include