Module Name:    src
Committed By:   joerg
Date:           Wed Feb 20 14:13:32 UTC 2013

Modified Files:
        src/tools/llvm: Makefile

Log Message:
Work-around for python detection in LLVM's configure script


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/tools/llvm/Makefile

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

Modified files:

Index: src/tools/llvm/Makefile
diff -u src/tools/llvm/Makefile:1.15 src/tools/llvm/Makefile:1.16
--- src/tools/llvm/Makefile:1.15	Sun Jun 17 07:40:25 2012
+++ src/tools/llvm/Makefile	Wed Feb 20 14:13:31 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.15 2012/06/17 07:40:25 joerg Exp $
+#	$NetBSD: Makefile,v 1.16 2013/02/20 14:13:31 joerg Exp $
 
 .include <bsd.init.mk>
 
@@ -13,8 +13,11 @@ realdepends realall: config/config.statu
 
 config/config.status: ${LLVM_SRCDIR}/configure
 	mkdir -p config
+	printf '#!/bin/sh\necho 2.7.3' > config/python
+	chmod 755 config/python
 	cd config && ${LLVM_SRCDIR}/configure ${LLVM_CONFIGURE_ARGS} \
-	    --enable-optimized CC=${HOST_CC:Q}
+	    --enable-optimized CC=${HOST_CC:Q} \
+	    --with-python=${.OBJDIR}/config/python
 # --disable-assertions
 
 need-dl:

Reply via email to