From 8e31c836afe199186d7006c4e2b3b9b404029587 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Wed, 23 Nov 2011 16:34:53 +0000 Subject: [PATCH] Makefile.am: work around MSVC LIB.EXE not being in PATH --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 5b6b1fa..7630c48 100644 --- a/Makefile.am +++ b/Makefile.am @@ -68,8 +68,10 @@ AM_VALAFLAGS += --define=OS_WIN32 noinst_DATA = libmoonshot/libmoonshot.lib +# Build the MSVC lib. The sed hack fixes execution in the case that +# the MSVC toolchain isn't in the PATH. libmoonshot/libmoonshot.lib: libmoonshot/libmoonshot.def - "${MSVC_LIB}" -def:$< -out:$@ -machine:x86 + PATH="$(shell echo "${MSVC_LIB}" | sed -e s,/VC/bin/lib,/Common7/IDE,)":$$PATH "${MSVC_LIB}" -def:$< -out:$@ -machine:x86 endif -- 2.1.4