---
Makefile.am | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 2eebefa..560ebda 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -352,11 +352,11 @@ check-with-upstream-qemu:
check-with-upstream-qemu-1: $(top_builddir)/qemu-wrapper.sh
$(QEMUBINARY) --version
- $(MAKE) LIBGUESTFS_QEMU=$(top_builddir)/qemu-wrapper.sh check
+ $(MAKE) LIBGUESTFS_QEMU=$(abs_builddir)/qemu-wrapper.sh check
$(top_builddir)/qemu-wrapper.sh: Makefile
rm -f $@ $@-t
- echo exec "$(QEMUBINARY)" -L "$(QEMUDIR)/pc-bios" "$$@"
> $@-t
+ echo -e "#!/bin/sh\nexec" "$(QEMUBINARY)" -L
"$(QEMUDIR)/pc-bios" \"\$$@\" > $@-t
chmod +x,-w $@-t
mv $@-t $@
--
1.8.0