summaryrefslogtreecommitdiff
path: root/packages/emacs/files/use-qemu.patch
blob: b23f1d631e1d5596ccac8e44dcbc928e9bffc284 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
diff -Nur emacs~/Makefile.in emacs/Makefile.in
--- emacs~/Makefile.in	2006-07-25 09:45:48.000000000 -0700
+++ emacs/Makefile.in	2006-07-26 07:33:43.000000000 -0700
@@ -782,7 +782,7 @@
 bootstrap-build: FRC
 	(cd lisp; $(MAKE) $(MFLAGS) bootstrap-prepare)
 	(cd src; $(MAKE) $(MFLAGS) bootstrap)
-	(cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=../src/bootstrap-emacs${EXEEXT})
+	(cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS="${QEMU} ../src/bootstrap-emacs${EXEEXT}")
 	(cd src; $(MAKE) $(MFLAGS) mostlyclean)
 	$(MAKE) $(MFLAGS) all
 	(cd lisp; $(MAKE) $(MFLAGS) bootstrap-after)
diff -Nur emacs~/leim/Makefile.in emacs/leim/Makefile.in
--- emacs~/leim/Makefile.in	2006-07-25 09:45:53.000000000 -0700
+++ emacs/leim/Makefile.in	2006-07-26 07:30:53.000000000 -0700
@@ -48,7 +48,7 @@
 
 # How to run Emacs.
 RUN-EMACS = EMACSLOADPATH=$(buildlisppath) LC_ALL=C\
-	${BUILT-EMACS} -batch --no-init-file --no-site-file --multibyte
+	${QEMU} ${BUILT-EMACS} -batch --no-init-file --no-site-file --multibyte
 
 # Subdirectories to be made if ${srcdir} is different from the current
 # directory.
diff -Nur emacs~/lib-src/Makefile.in emacs/lib-src/Makefile.in
--- emacs~/lib-src/Makefile.in	2006-07-25 09:45:54.000000000 -0700
+++ emacs/lib-src/Makefile.in	2006-07-26 07:36:29.000000000 -0700
@@ -380,7 +380,7 @@
    clobbered too.  */
 test-distrib${EXEEXT}: ${srcdir}/test-distrib.c
 	$(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c
-	./test-distrib ${srcdir}/testfile
+	${QEMU} ./test-distrib ${srcdir}/testfile
 
 /* We need the following in order to create a <getopt.h> when the system
    doesn't have one that works with the given compiler.  */
diff -Nur emacs~/src/Makefile.in emacs/src/Makefile.in
--- emacs~/src/Makefile.in	2006-07-25 09:46:16.000000000 -0700
+++ emacs/src/Makefile.in	2006-07-26 07:37:44.000000000 -0700
@@ -491,7 +491,7 @@
    this with the shell's `for' construct.
    Note that some people don't have '.'  in their paths, so we must
    use ./prefix-args.  */
-#define YMF_PASS_LDFLAGS(flags) `./prefix-args -Xlinker flags`
+#define YMF_PASS_LDFLAGS(flags) `${QEMU} ./prefix-args -Xlinker flags`
 #else
 #define YMF_PASS_LDFLAGS(flags) flags
 #endif
@@ -943,7 +943,7 @@
 #define OBJECTS_MACHINE
 #endif
 
-RUN_TEMACS = ./temacs
+RUN_TEMACS = ${QEMU} ./temacs
 
 all: emacs${EXEEXT} OTHER_FILES
 
@@ -970,8 +970,8 @@
    Likewise for ${SOME_MACHINE_LISP}.  */
 ${etc}DOC: ${libsrc}make-docfile${EXEEXT} ${obj} ${shortlisp} ${SOME_MACHINE_LISP}
 	-rm -f ${etc}DOC
-	${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC
-	${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp}
+	${QEMU} ${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC
+	${QEMU} ${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp}
 
 ${libsrc}make-docfile${EXEEXT}:
 	cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile${EXEEXT}