pkgsrc-WIP-changes archive

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

llvm: fix misdetected host triple on NetBSD/evbarm



Module Name:	pkgsrc-wip
Committed By:	Tobias Nygren <tnn%NetBSD.org@localhost>
Pushed By:	tnn
Date:		Wed Feb 24 19:00:55 2016 +0100
Changeset:	9592a45301288bbdb7f9ffd57f8e11113249a586

Modified Files:
	llvm-git/Makefile
	llvm/Makefile

Log Message:
llvm: fix misdetected host triple on NetBSD/evbarm

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

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

diffstat:
 llvm-git/Makefile | 5 +++++
 llvm/Makefile     | 5 +++++
 2 files changed, 10 insertions(+)

diffs:
diff --git a/llvm-git/Makefile b/llvm-git/Makefile
index 25c5dab..671af5f 100644
--- a/llvm-git/Makefile
+++ b/llvm-git/Makefile
@@ -72,8 +72,13 @@ TEST_ENV+=		LD_LIBRARY_PATH=${WRKDIR}/build/lib
 .include "../../mk/bsd.prefs.mk"
 .include "options.mk"
 
+# replacing config.guess is required even for cmake.
+# It is used to detect correct LLVM_HOST_TRIPLE, e.g. for NetBSD/evbarm.
 post-extract:
 	${RUN} mkdir -p ${WRKDIR}/build
+.for f in config.guess config.sub
+	cp ../../mk/gnu-config/${f} ${WRKSRC}/autoconf/${f}
+.endfor
 
 .include "../../wip/mk/git-package.mk"
 .include "../../devel/zlib/buildlink3.mk"
diff --git a/llvm/Makefile b/llvm/Makefile
index d589fff..cf0113a 100644
--- a/llvm/Makefile
+++ b/llvm/Makefile
@@ -72,8 +72,13 @@ TEST_ENV+=		LD_LIBRARY_PATH=${WRKDIR}/build/lib
 .include "../../mk/bsd.prefs.mk"
 .include "options.mk"
 
+# replacing config.guess is required even for cmake.
+# It is used to detect correct LLVM_HOST_TRIPLE, e.g. for NetBSD/evbarm.
 post-extract:
 	${RUN} mkdir -p ${WRKDIR}/build
+.for f in config.guess config.sub
+	cp ../../mk/gnu-config/${f} ${WRKSRC}/autoconf/${f}
+.endfor
 
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../lang/python/tool.mk"


Home | Main Index | Thread Index | Old Index