Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Dec 2022 04:57:44 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8aeaf7a6c115 - main - cad/nvc: Combine conditional clauses for different architectures
Message-ID:  <202212120457.2BC4vicY041314@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



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