Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Aug 2023 01:38:29 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 9cceb3f6c1f7 - main - security/gnupg1: drop GCC on powerpc
Message-ID:  <202308120138.37C1cTmL039467@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9cceb3f6c1f777bc2625c6dc12965051461fb2c5

commit 9cceb3f6c1f777bc2625c6dc12965051461fb2c5
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-08-12 00:19:38 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-08-12 01:37:48 +0000

    security/gnupg1: drop GCC on powerpc
    
    Binutils are necessary:
    cc: error: unsupported argument '-mppc' to option 'Wa,'
---
 security/gnupg1/Makefile | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/security/gnupg1/Makefile b/security/gnupg1/Makefile
index b0ede8602c13..54957a169c77 100644
--- a/security/gnupg1/Makefile
+++ b/security/gnupg1/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	gnupg
 PORTVERSION=	1.4.23
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	security
 MASTER_SITES=	GNUPG
 PKGNAMESUFFIX=	1
@@ -53,10 +53,13 @@ NLS_CONFIGURE_ENABLE=	nls
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == "i386" && ${COMPILER_TYPE} == "clang"
+.if (${ARCH} == "i386" || ${ARCH} == "powerpc") && ${COMPILER_TYPE} == "clang"
 CFLAGS+=	-fheinous-gnu-extensions
-.elif ${ARCH} == powerpc
-USE_GCC=	yes
+.endif
+
+.if ${ARCH} == "powerpc" && ${COMPILER_TYPE} == "clang"
+BUILD_DEPENDS+=	as:devel/binutils
+CFLAGS+=	-fno-integrated-as
 .endif
 
 post-install-DOCS-on:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308120138.37C1cTmL039467>