]> Zhao Yanbai Git Server - minix.git/commitdiff
for pkgsrc without base clang from sambuc@ 01/2901/1
authorBen Gras <ben@minix3.org>
Mon, 24 Nov 2014 12:54:36 +0000 (12:54 +0000)
committerBen Gras <ben@minix3.org>
Tue, 25 Nov 2014 09:52:02 +0000 (10:52 +0100)
Change-Id: Id0bf33da426f6c7a14628846dd1185cdcdfac766

share/mk/bsd.own.mk

index 284505d3caa2a2bac322937fe6fb61020a6b6d5e..0ce79e574106e7178ab3c53436e08fd8244ce3f5 100644 (file)
@@ -574,7 +574,11 @@ TOOL_CKSUM=                cksum
 .if defined(__MINIX)
 # LSC: A full path has to be provided, as this is also, used as a make
 #      target.
+.if  exists(/usr/pkg/bin/clang-tblgen)
+TOOL_CLANG_TBLGEN=     /usr/pkg/bin/clang-tblgen
+.else
 TOOL_CLANG_TBLGEN=     /usr/bin/clang-tblgen
+.endif # exists(/usr/pkg/bin/clang-tblgen)
 .else
 TOOL_CLANG_TBLGEN=     clang-tblgen
 .endif # defined(__MINIX)
@@ -604,7 +608,11 @@ TOOL_JOIN=         join
 .if defined(__MINIX)
 # LSC: A full path has to be provided, as this is also, used as a make
 #      target.
+.if  exists(/usr/pkg/bin/llvm-tblgen)
+TOOL_LLVM_TBLGEN=      /usr/pkg/bin/llvm-tblgen
+.else
 TOOL_LLVM_TBLGEN=      /usr/bin/llvm-tblgen
+.endif # exists(/usr/pkg/bin/llvm-tblgen)
 .else
 TOOL_LLVM_TBLGEN=      llvm-tblgen
 .endif # defined(__MINIX)