pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

rust: pull over change from lang/rust: fix for i586 build.



Module Name:	pkgsrc-wip
Committed By:	Havard Eidnes <he%uninett.no@localhost>
Pushed By:	he
Date:		Wed Aug 11 15:57:46 2021 +0000
Changeset:	9866354f590d6c105e937923e68576b77ce4a98c

Modified Files:
	rust/Makefile

Log Message:
rust: pull over change from lang/rust: fix for i586 build.

The mix of i586-unknown-netbsd and i686-unknown-netbsd targets
leads to partial misdetection of external llvm from lang/llvm.
It adds -DLLVM_RUSTLLVM to CFLAGS and -DLLVM_RUSTLLVM breaks
PassWrapper.c build with external llvm.
Fixes PR pkg/56304.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9866354f590d6c105e937923e68576b77ce4a98c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 rust/Makefile | 1 +
 1 file changed, 1 insertion(+)

diffs:
diff --git a/rust/Makefile b/rust/Makefile
index 382f6e45c3..78eb381ecb 100644
--- a/rust/Makefile
+++ b/rust/Makefile
@@ -238,6 +238,7 @@ DISTFILES:=		${DISTFILES} ${RUST_STAGE0} ${RUST_STD_STAGE0}
 #DIST_SUBDIR=		${PKGNAME}
 # For atomic ops
 CFLAGS+=		-march=i586
+CONFIGURE_ARGS+=	--build=${RUST_ARCH}
 pre-build-fix:
 	${TOOLS_PLATFORM.paxctl} +am ${WRKDIR}/rust-bootstrap/bin/cargo
 	${TOOLS_PLATFORM.paxctl} +am ${WRKDIR}/rust-bootstrap/bin/rustc


Home | Main Index | Thread Index | Old Index