git: 8aeaf7a6c115 - main - cad/nvc: Combine conditional clauses for different architectures
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 12 Dec 2022 04:57:44 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=8aeaf7a6c115479384803e1e6e61b08633551946
commit 8aeaf7a6c115479384803e1e6e61b08633551946
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-12-12 04:56:23 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-12-12 04:57:42 +0000
cad/nvc: Combine conditional clauses for different architectures
Reported by: pkubaj@
---
cad/nvc/Makefile | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/cad/nvc/Makefile b/cad/nvc/Makefile
index 9404d23dc65b..78cd9633a5e8 100644
--- a/cad/nvc/Makefile
+++ b/cad/nvc/Makefile
@@ -35,11 +35,6 @@ LDFLAGS+= -lexecinfo
CONFIGURE_ARGS= --with-llvm=${LOCALBASE}/bin/llvm-config${LLVM_VERSION}
-.include <bsd.port.options.mk>
-.if ${ARCH} == "i386" # see the bug#268319 for the LTO failure on i386
-CONFIGURE_ARGS+= --disable-lto # workaround for https://github.com/nickg/nvc/issues/579 (undefined symbol: _GLOBAL_OFFSET_TABLE_, see error: undefined symbol: _GLOBAL_OFFSET_TABLE_)
-.endif
-
TEST_TARGET= check # several tests fail, see https://github.com/nickg/nvc/issues/530
TEST_WRKSRC= ${WRKSRC}/.build
@@ -56,8 +51,8 @@ CONFIGURE_CMD= ${WRKSRC}/configure
.include <bsd.port.options.mk>
-.if ${ARCH} == powerpc64
-CONFIGURE_ARGS+= --enable-lto=no
+.if ${ARCH} == "i386" || ${ARCH} == powerpc64 # see the bug#268319 for the LTO failure on i386
+CONFIGURE_ARGS+= --disable-lto # workaround for https://github.com/nickg/nvc/issues/579 (undefined symbol: _GLOBAL_OFFSET_TABLE_, see error: undefined symbol: _GLOBAL_OFFSET_TABLE_)
.endif
post-install: