git: 8b6e99c02d6d - main - ftp/ftpcopy: fix build on non-x86
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 07 Nov 2021 12:19:39 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=8b6e99c02d6da8b25db80197b38bef1b8ae20f71 commit 8b6e99c02d6da8b25db80197b38bef1b8ae20f71 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-11-07 12:14:54 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2021-11-07 12:14:54 +0000 ftp/ftpcopy: fix build on non-x86 Use GCC since clang doesn't like regparm, but GCC ignores it. --- ftp/ftpcopy/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ftp/ftpcopy/Makefile b/ftp/ftpcopy/Makefile index 5fc463123875..9d9554bd3450 100644 --- a/ftp/ftpcopy/Makefile +++ b/ftp/ftpcopy/Makefile @@ -10,11 +10,6 @@ COMMENT= Command line FTP tools for listing and mirroring LICENSE= GPLv2 -BROKEN_aarch64= fails to build: regparm is not valid on this platform -BROKEN_armv6= fails to build: regparm is not valid on this platform -BROKEN_armv7= fails to build: regparm is not valid on this platform -BROKEN_riscv64= fails to build: regparm is not valid on this platform - USES= perl5 USE_PERL5= build @@ -22,6 +17,12 @@ WRKSRC= ${WRKDIR}/web/${DISTNAME} OPTIONS_DEFINE= DOCS +.include <bsd.port.options.mk> + +.if ${ARCH} != amd64 && ${ARCH} != i386 +USES+= compiler:gcc-c++11-lib +.endif + pre-build: ${ECHO} "${CC}" >${WRKSRC}/src/conf-cc ${ECHO} "${CPPFLAGS} ${CFLAGS}" >${WRKSRC}/src/conf-cflags