diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2022-12-11 19:15:21 +0000 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2022-12-11 19:16:26 +0000 |
| commit | 02542ea91df19ec0d3637301c3c5cbc997f6d606 (patch) | |
| tree | ee6f70cef277761578b8d10d8e3393acf8d93197 | |
| parent | 088d402eeaddc69b84b6d6f1983c9777048b4f3c (diff) | |
cad/nvc: Disable LTO on i386
Otherwise LTO fails, see bug#268319
| -rw-r--r-- | cad/nvc/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cad/nvc/Makefile b/cad/nvc/Makefile index 34dd21b2b938..4b8e9d10d601 100644 --- a/cad/nvc/Makefile +++ b/cad/nvc/Makefile @@ -12,7 +12,6 @@ LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_armv6= compilation fails: no member named '_gregs' in 'mcontext_t'; did you mean '__gregs', see https://github.com/nickg/nvc/issues/534 BROKEN_armv7= compilation fails: no member named '_gregs' in 'mcontext_t'; did you mean '__gregs', see https://github.com/nickg/nvc/issues/534 -BROKEN_i386= link fails: error: undefined symbol: _GLOBAL_OFFSET_TABLE_, see error: undefined symbol: _GLOBAL_OFFSET_TABLE_ BROKEN_FreeBSD_14_i386= clang creashes, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265826 BUILD_DEPENDS= llvm-config${LLVM_VERSION}:devel/llvm${LLVM_VERSION} @@ -35,6 +34,9 @@ GNU_CONFIGURE= yes LDFLAGS+= -lexecinfo CONFIGURE_ARGS= --with-llvm=${LOCALBASE}/bin/llvm-config${LLVM_VERSION} +.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 |
