updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / euphoria3 / 64bit_fix.patch
blob9d15c66905a8d2a9211bcc232851adcd5f953a7a
1 --- euphoria/source/bmakeu 2007-08-14 23:06:02.000000000 +0300
2 +++ euphoria_64/source/bmakeu 2010-11-13 18:00:44.553257862 +0200
3 @@ -1,32 +1,32 @@
4 # make the back-end for binding
5 rm *.o
6 exu ec.ex backend.ex
7 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer main-.c
8 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer init-.c
9 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer file.c
10 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer machine.c
11 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer wildcard.c
12 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer 0ackend.c
13 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer pathopen.c
14 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer backend.c
15 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer compress.c
16 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 main-.c
17 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 init-.c
18 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 file.c
19 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 machine.c
20 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 wildcard.c
21 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 0ackend.c
22 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 pathopen.c
23 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 backend.c
24 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 compress.c
26 #back-end files - for FreeBSD add -DEBSD
27 -gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_execute.c
28 -gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_runtime.c
29 -gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_w.c
30 -gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_main.c
31 -gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_alloc.c
32 -gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_symtab.c
33 -gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -finline-functions -ffast-math -fomit-frame-pointer be_inline.c
34 -gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_machine.c
35 -gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_task.c
36 -gcc -c -w -DELINUX -DBACKEND -fsigned-char -O -Os -fno-inline-functions -ffast-math -fomit-frame-pointer be_rterror.c
37 -gcc -c -w -DELINUX -DBACKEND -fsigned-char -O -Os -fno-inline-functions -ffast-math -fomit-frame-pointer be_syncolor.c
38 -gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fno-defer-pop be_callc.c
39 +gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_execute.c
40 +gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_runtime.c
41 +gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_w.c
42 +gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_main.c
43 +gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_alloc.c
44 +gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_symtab.c
45 +gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -finline-functions -ffast-math -fomit-frame-pointer -m32 be_inline.c
46 +gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_machine.c
47 +gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_task.c
48 +gcc -c -w -DELINUX -DBACKEND -fsigned-char -O -Os -fno-inline-functions -ffast-math -fomit-frame-pointer -m32 be_rterror.c
49 +gcc -c -w -DELINUX -DBACKEND -fsigned-char -O -Os -fno-inline-functions -ffast-math -fomit-frame-pointer -m32 be_syncolor.c
50 +gcc -c -w -DELINUX -DBACKEND -fsigned-char -O2 -ffast-math -fno-defer-pop -m32 be_callc.c
52 echo linking - for FreeBSD omit -ldl
53 -gcc main-.o 0ackend.o backend.o init-.o file.o wildcard.o machine.o compress.o pathopen.o be_callc.o be_execute.o be_runtime.o be_w.o be_main.o be_alloc.o be_rterror.o be_symtab.o be_inline.o be_machine.o be_task.o be_syncolor.o -lm -ldl -obackendu
54 +gcc -m32 main-.o 0ackend.o backend.o init-.o file.o wildcard.o machine.o compress.o pathopen.o be_callc.o be_execute.o be_runtime.o be_w.o be_main.o be_alloc.o be_rterror.o be_symtab.o be_inline.o be_machine.o be_task.o be_syncolor.o -lm -ldl -obackendu
55 rm -f *.o
56 ~/upx --best backendu
57 ls -l backendu
59 --- euphoria/source/gnulib 2007-08-14 23:06:23.000000000 +0300
60 +++ euphoria_64/source/gnulib 2010-11-13 17:52:39.935448516 +0200
61 @@ -1,11 +1,11 @@
62 #build the library for Linux. For FreeBSD, add -DEBSD
63 -gcc -c -w -DELINUX -DERUNTIME -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_runtime.c
64 -gcc -c -w -DELINUX -DERUNTIME -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_w.c
65 -gcc -c -w -DELINUX -DERUNTIME -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_alloc.c
66 -gcc -c -w -DELINUX -DERUNTIME -fsigned-char -O2 -finline-functions -ffast-math -fomit-frame-pointer be_inline.c
67 -gcc -c -w -DELINUX -DERUNTIME -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_machine.c
68 -gcc -c -w -DELINUX -DERUNTIME -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_task.c
69 -gcc -c -w -DELINUX -DERUNTIME -fsigned-char -O2 -ffast-math -fno-defer-pop be_callc.c
70 +gcc -c -w -DELINUX -DERUNTIME -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_runtime.c
71 +gcc -c -w -DELINUX -DERUNTIME -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_w.c
72 +gcc -c -w -DELINUX -DERUNTIME -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_alloc.c
73 +gcc -c -w -DELINUX -DERUNTIME -fsigned-char -O2 -finline-functions -ffast-math -fomit-frame-pointer -m32 be_inline.c
74 +gcc -c -w -DELINUX -DERUNTIME -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_machine.c
75 +gcc -c -w -DELINUX -DERUNTIME -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_task.c
76 +gcc -c -w -DELINUX -DERUNTIME -fsigned-char -O2 -ffast-math -fno-defer-pop -m32 be_callc.c
78 ar -rc ecu.a be_machine.o be_inline.o be_w.o be_alloc.o be_runtime.o be_task.o be_callc.o
79 ls -l ecu.a
81 --- euphoria/source/imakeu 2007-08-14 23:06:25.000000000 +0300
82 +++ euphoria_64/source/imakeu 2010-11-13 17:58:37.448446447 +0200
83 @@ -2,43 +2,43 @@
84 rm -f *.o
85 exu ec.ex int.ex
86 echo compiling front-end
87 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer main-.c
88 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer main-0.c
89 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer init-.c
90 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer int.c
91 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer wildcard.c
92 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer error.c
93 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer machine.c
94 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer symtab.c
95 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer scanner.c
96 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer scanne_0.c
97 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer emit.c
98 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer emit_0.c
99 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer emit_1.c
100 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer file.c
101 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer parser.c
102 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer parser_0.c
103 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer parser_1.c
104 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer compress.c
105 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer backend.c
106 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer main.c
107 -gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer pathopen.c
108 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 main-.c
109 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 main-0.c
110 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 init-.c
111 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 int.c
112 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 wildcard.c
113 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 error.c
114 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 machine.c
115 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 symtab.c
116 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 scanner.c
117 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 scanne_0.c
118 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 emit.c
119 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 emit_0.c
120 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 emit_1.c
121 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 file.c
122 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 parser.c
123 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 parser_0.c
124 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 parser_1.c
125 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 compress.c
126 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 backend.c
127 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 main.c
128 +gcc -c -w -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 pathopen.c
130 echo compiling backend - for FreeBSD add -DEBSD
131 -gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_execute.c
132 -gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_runtime.c
133 -gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_w.c
134 -gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_main.c
135 -gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_alloc.c
136 -gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_symtab.c
137 -gcc -c -w -DELINUX -fsigned-char -O2 -finline-functions -ffast-math -fomit-frame-pointer be_inline.c
138 -gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_machine.c
139 -gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fomit-frame-pointer be_task.c
140 -gcc -c -w -DELINUX -fsigned-char -O -Os -fno-inline-functions -ffast-math -fomit-frame-pointer be_rterror.c
141 -gcc -c -w -DELINUX -fsigned-char -O -Os -fno-inline-functions -ffast-math -fomit-frame-pointer be_syncolor.c
142 -gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fno-defer-pop be_callc.c
143 +gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_execute.c
144 +gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_runtime.c
145 +gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_w.c
146 +gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_main.c
147 +gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_alloc.c
148 +gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_symtab.c
149 +gcc -c -w -DELINUX -fsigned-char -O2 -finline-functions -ffast-math -fomit-frame-pointer -m32 be_inline.c
150 +gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_machine.c
151 +gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fomit-frame-pointer -m32 be_task.c
152 +gcc -c -w -DELINUX -fsigned-char -O -Os -fno-inline-functions -ffast-math -fomit-frame-pointer -m32 be_rterror.c
153 +gcc -c -w -DELINUX -fsigned-char -O -Os -fno-inline-functions -ffast-math -fomit-frame-pointer -m32 be_syncolor.c
154 +gcc -c -w -DELINUX -fsigned-char -O2 -ffast-math -fno-defer-pop -m32 be_callc.c
156 echo linking - for FreeBSD remove -ldl
157 -gcc int.o main-.o main-0.o init-.o wildcard.o error.o machine.o symtab.o scanner.o scanne_0.o emit.o emit_0.o emit_1.o file.o parser.o parser_0.o parser_1.o compress.o backend.o main.o pathopen.o be_callc.o be_execute.o be_runtime.o be_w.o be_main.o be_alloc.o be_rterror.o be_symtab.o be_inline.o be_machine.o be_task.o be_syncolor.o -lm -ldl -oexu
158 +gcc -m32 int.o main-.o main-0.o init-.o wildcard.o error.o machine.o symtab.o scanner.o scanne_0.o emit.o emit_0.o emit_1.o file.o parser.o parser_0.o parser_1.o compress.o backend.o main.o pathopen.o be_callc.o be_execute.o be_runtime.o be_w.o be_main.o be_alloc.o be_rterror.o be_symtab.o be_inline.o be_machine.o be_task.o be_syncolor.o -lm -ldl -oexu
159 rm -f *.o
160 ls -l exu