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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
|
$NetBSD: patch-aa,v 1.2 2011/03/31 09:03:21 asau Exp $
Add support for NetBSD/ppc and NetBSD/sparc.
Always pass "--tag=CC" to libtool.
--- d2c/compiler/platforms.descr.orig 2004-10-17 23:17:02.000000000 +0400
+++ d2c/compiler/platforms.descr 2011-03-31 11:05:47.000000000 +0400
@@ -452,14 +452,14 @@
platform-name: gcc
default-features: C-compiler-is-GCC
compile-c-command: gcc $(CCFLAGS) -c %s -o %s
-compile-c-for-shared-command: $(LIBTOOL) --mode=compile gcc $(CCFLAGS) -c %s -o %s
+compile-c-for-shared-command: $(LIBTOOL) --mode=compile --tag=CC gcc $(CCFLAGS) -c %s -o %s
default-c-compiler-flags: -I. -I%s -O2 -fomit-frame-pointer -fno-strict-aliasing
default-c-compiler-debug-flags: -I. -I%s -g -O -fno-inline-functions
default-c-compiler-profile-flags: -I. -I%s -pg -g -O -fno-inline-functions
assembler-command: gcc $(CCFLAGS) -c %s -o %s
link-library-command: ar qc %s %s
-link-executable-command: $(LIBTOOL) --mode=link gcc -o %s %s %s
-link-shared-executable-command: $(LIBTOOL) --mode=link gcc -o %s %s %s
+link-executable-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s %s
+link-shared-executable-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s %s
link-executable-flags: $(GC_LIBS) -lm
link-debug-flags: -g
link-profile-flags: -pg -g
@@ -468,42 +468,42 @@
platform-name: beos-gcc
default-features: C-compiler-is-GCC
compile-c-command: gcc $(CCFLAGS) -c %s -o %s
-compile-c-for-shared-command: $(LIBTOOL) --mode=compile gcc $(CCFLAGS) -c %s -o %s
+compile-c-for-shared-command: $(LIBTOOL) --mode=compile --tag=CC gcc $(CCFLAGS) -c %s -o %s
default-c-compiler-flags: -I. -I%s -g -O3
default-c-compiler-debug-flags: -I. -I%s -g -O -fno-inline-functions
default-c-compiler-profile-flags: -I. -I%s -pg -g -O -fno-inline-functions
assembler-command: gcc $(CCFLAGS) -c %s -o %s
link-library-command: ar qc %s %s
-link-executable-command: $(LIBTOOL) --mode=link gcc -o %s %s %s
-link-shared-executable-command: $(LIBTOOL) --mode=link gcc -o %s %s %s
+link-executable-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s %s
+link-shared-executable-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s %s
link-executable-flags:
path-separator: /
platform-name: mac-cw
default-features: C-compiler-is-GCC
compile-c-command: gcc $(CCFLAGS) -c %s -o %s
-compile-c-for-shared-command: $(LIBTOOL) --mode=compile gcc $(CCFLAGS) -c %s -o %s
+compile-c-for-shared-command: $(LIBTOOL) --mode=compile --tag=CC gcc $(CCFLAGS) -c %s -o %s
default-c-compiler-flags: -I. -I%s -g -O4 -finline-functions
default-c-compiler-debug-flags: -I. -I%s -g -O -fno-inline-functions
default-c-compiler-profile-flags: -I. -I%s -pg -g -O -fno-inline-functions
assembler-command: gcc $(CCFLAGS) -c %s -o %s
link-library-command: ar qc %s %s
-link-executable-command: $(LIBTOOL) --mode=link gcc -o %s %s %s
-link-shared-executable-command: $(LIBTOOL) --mode=link gcc -o %s %s %s
+link-executable-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s %s
+link-shared-executable-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s %s
link-executable-flags: $(GC_LIBS) -lm
path-separator: :
platform-name: egcs
default-features: C-compiler-is-EGCS
compile-c-command: cc $(CCFLAGS) -c %s -o %s
-compile-c-for-shared-command: $(LIBTOOL) --mode=compile cc $(CCFLAGS) -c %s -o %s
+compile-c-for-shared-command: $(LIBTOOL) --mode=compile --tag=CC cc $(CCFLAGS) -c %s -o %s
default-c-compiler-flags: -I. -I%s -O2 -fomit-frame-pointer
default-c-compiler-debug-flags: -I. -I%s -g -O -fno-inline-functions
default-c-compiler-profile-flags: -I. -I%s -pg -g -O -fno-inline-functions
assembler-command: cc $(CCFLAGS) -c %s -o %s
link-library-command: ar qc %s %s
-link-executable-command: $(LIBTOOL) --mode=link cc -o %s %s %s
-link-shared-executable-command: $(LIBTOOL) --mode=link cc -o %s %s %s
+link-executable-command: $(LIBTOOL) --mode=link --tag=CC cc -o %s %s %s
+link-shared-executable-command: $(LIBTOOL) --mode=link --tag=CC cc -o %s %s %s
link-executable-flags: $(GC_LIBS) -multiply_defined suppress
path-separator: /
@@ -521,14 +521,14 @@
platform-name: ppc-gcc30
default-features: C-compiler-is-GCC
compile-c-command: gcc-3.0 $(CCFLAGS) -c %s -o %s
-compile-c-for-shared-command: $(LIBTOOL) --mode=compile gcc-3.0 $(CCFLAGS) -c %s -o %s
+compile-c-for-shared-command: $(LIBTOOL) --mode=compile --tag=CC gcc-3.0 $(CCFLAGS) -c %s -o %s
default-c-compiler-flags: -I. -I%s -O2 -fomit-frame-pointer -fno-strict-aliasing
default-c-compiler-debug-flags: -I. -I%s -g -O -fno-inline-functions
default-c-compiler-profile-flags: -I. -I%s -pg -g -O -fno-inline-functions
assembler-command: gcc-3.0 $(CCFLAGS) -c %s -o %s
link-library-command: ar qc %s %s
-link-executable-command: $(LIBTOOL) --mode=link gcc-3.0 -o %s %s %s
-link-shared-executable-command: $(LIBTOOL) --mode=link gcc-3.0 -o %s %s %s
+link-executable-command: $(LIBTOOL) --mode=link --tag=CC gcc-3.0 -o %s %s %s
+link-shared-executable-command: $(LIBTOOL) --mode=link --tag=CC gcc-3.0 -o %s %s %s
link-executable-flags: $(GC_LIBS) -lm
link-profile-flags: -pg
path-separator: /
@@ -536,14 +536,14 @@
platform-name: ppc-gcc32
default-features: C-compiler-is-GCC
compile-c-command: gcc-3.2 $(CCFLAGS) -c %s -o %s
-compile-c-for-shared-command: $(LIBTOOL) --mode=compile gcc-3.2 $(CCFLAGS) -c %s -o %s
+compile-c-for-shared-command: $(LIBTOOL) --mode=compile --tag=CC gcc-3.2 $(CCFLAGS) -c %s -o %s
default-c-compiler-flags: -I. -I%s -O2 -fomit-frame-pointer -fno-strict-aliasing
default-c-compiler-debug-flags: -I. -I%s -g -O -fno-inline-functions
default-c-compiler-profile-flags: -I. -I%s -pg -g -O -fno-inline-functions
assembler-command: gcc-3.2 $(CCFLAGS) -c %s -o %s
link-library-command: ar qc %s %s
-link-executable-command: $(LIBTOOL) --mode=link gcc-3.2 -o %s %s %s
-link-shared-executable-command: $(LIBTOOL) --mode=link gcc-3.2 -o %s %s %s
+link-executable-command: $(LIBTOOL) --mode=link --tag=CC gcc-3.2 -o %s %s %s
+link-shared-executable-command: $(LIBTOOL) --mode=link --tag=CC gcc-3.2 -o %s %s %s
link-executable-flags: $(GC_LIBS) -lm
link-profile-flags: -pg
path-separator: /
@@ -552,28 +552,28 @@
platform-name: x86-gcc32
inherit-from: x86 gcc
default-c-compiler-flags: -I. -I%s -O2 -fomit-frame-pointer -fno-strict-aliasing
-link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
platform-name: x86-gcc33
inherit-from: x86 gcc
default-c-compiler-flags: -I. -I%s -O
-link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s
-link-executable-command: $(LIBTOOL) --mode=link gcc -static -o %s %s %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
+link-executable-command: $(LIBTOOL) --mode=link --tag=CC gcc -static -o %s %s %s
/// sparc
platform-name: sparc-gcc30
inherit-from: sparc gcc
default-c-compiler-flags: -I. -I%s -O1
default-c-compiler-debug-flags: -I. -I%s -g -O0 -fno-inline-functions
-link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
long-long-alignment: 8
// Fully supported platforms (i.e., we use these):
platform-name: x86-linux-gcc
inherit-from: gcc linux x86
-link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s
-link-executable-command: $(LIBTOOL) --mode=link gcc -static -o %s %s %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
+link-executable-command: $(LIBTOOL) --mode=link --tag=CC gcc -static -o %s %s %s
platform-name: x86-linux-gcc32
inherit-from: linux x86-gcc32
@@ -583,12 +583,24 @@
platform-name: x86-bsdi-gcc
inherit-from: gcc bsdi x86
-link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
platform-name: x86-netbsd-gcc
inherit-from: gcc netbsd x86
default-c-compiler-flags: -I. -I%s -I/usr/X11R6/include -fomit-frame-pointer -fno-strict-aliasing
-link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
+
+platform-name: ppc-netbsd-gcc
+inherit-from: gcc netbsd ppc
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
+long-long-size: 8
+long-long-alignment: 4
+
+platform-name: sparc-netbsd-gcc
+inherit-from: gcc netbsd sparc
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
+long-long-size: 8
+long-long-alignment: 4
platform-name: x86-beos-gcc
// Note: These rules depend on the presence of the MingW utilities in your
@@ -596,7 +608,7 @@
// you will have a bear of a time getting things to work without some
// UNIX-alike commands like "mv", "cmp", and GNU make.
inherit-from: beos-gcc beos x86
-link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
platform-name: ppc-linux
inherit-from: linux ppc
@@ -605,15 +617,15 @@
platform-name: ppc-linux-gcc
inherit-from: gcc ppc-linux
-link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
platform-name: ppc-linux-gcc30
inherit-from: ppc-gcc30 ppc-linux
-link-shared-library-command: $(LIBTOOL) --mode=link gcc-3.0 -o %s %s -rpath %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc-3.0 -o %s %s -rpath %s
platform-name: ppc-linux-gcc32
inherit-from: ppc-gcc32 ppc-linux
-link-shared-library-command: $(LIBTOOL) --mode=link gcc-3.2 -o %s %s -rpath %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc-3.2 -o %s %s -rpath %s
// FreeBSD 2.x
platform-name: x86-freebsd-aout-gcc
@@ -622,7 +634,7 @@
// FreeBSD 3.x and above
platform-name: x86-freebsd-elf-gcc
inherit-from: gcc freebsd x86
-link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
platform-name: x86-freebsd-elf-gcc32
inherit-from: freebsd x86-gcc32
@@ -634,15 +646,15 @@
inherit-from: gcc linux alpha
big-endian?: #f
assembler-command: gcc $(CCFLAGS) -x assembler-with-cpp -c %s -o %s
-link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
platform-name: sparc-linux-gcc
inherit-from: gcc linux sparc
-link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
platform-name: s390-linux-gcc
inherit-from: gcc linux s390
-link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
platform-name: MacOS-ppc
inherit-from: mac-cw macintosh ppc
@@ -666,20 +678,20 @@
// Douglas M. Auclair's cygnus port (doug@cotilliongroup.com)
platform-name: x86-cygnus-gcc
inherit-from: gcc x86 cygnus
-link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
long-long-alignment: 8
double-alignment: 8
platform-name: x86-cygnus-gcc32
inherit-from: x86-gcc32 cygnus
-link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
long-long-alignment: 4
double-alignment: 4
// Mingwin Port
platform-name: x86-mingw32-gcc32
inherit-from: gcc x86 mingw32
-link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -rpath %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -rpath %s
// Solaris support maintained by Tom Emerson, tree@tiac.net
// Need to define default-features: below since all three of our
@@ -716,7 +728,7 @@
platform-name: mips-irix-gcc
inherit-from: gcc irix mips
default-features: compiled-for-irix compiled-for-mips C-compiler-is-GCC
-link-shared-library-command: $(LIBTOOL) --mode=link cc -n32 -Wl,-woff,85 -o %s %s -rpath %s
+link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC cc -n32 -Wl,-woff,85 -o %s %s -rpath %s
// This is untested.
platform-name: sparc-openbsd-gcc
@@ -743,8 +755,8 @@
default-features: compiled-for-hpux compiled-for-hppa C-compiler-is-GCC
library-filename-suffix: .a .sl
link-library-command: /bin/ar qc %s %s
-link-executable-command: $(LIBTOOL) --mode=link gcc -o %s %s %s
-//link-shared-library-command: $(LIBTOOL) --mode=link gcc -o %s %s -L/lib/pa1.1 -lm -rpath %s
+link-executable-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s %s
+//link-shared-library-command: $(LIBTOOL) --mode=link --tag=CC gcc -o %s %s -L/lib/pa1.1 -lm -rpath %s
link-executable-flags: $(GC_LIBS) -L/lib/pa1.1 -lm
double-alignment: 8
long-long-alignment: 8
|