Skip to content

Commit

Permalink
security/gnupg1: drop GCC on powerpc
Browse files Browse the repository at this point in the history
Binutils are necessary:
cc: error: unsupported argument '-mppc' to option 'Wa,'
  • Loading branch information
pkubaj committed Aug 12, 2023
1 parent 100d9fe commit 9cceb3f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions security/gnupg1/Makefile
@@ -1,6 +1,6 @@
PORTNAME= gnupg
PORTVERSION= 1.4.23
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= security
MASTER_SITES= GNUPG
PKGNAMESUFFIX= 1
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 9cceb3f

Please sign in to comment.