mcc-build-fix.patch
cfe/bin/cfe/gnu.mk | ||
---|---|---|
12 | 12 |
.SECONDARY: $(addprefix, $(cfebits)/,c99.tab.h c99.tab.c c99.lex.c) |
13 | 13 | |
14 | 14 |
$(call o2d,$(cfeobj)): cflags += -I $(cferootnode)/lib |
15 |
include $(call o2d,$(cfeobj)) |
|
15 |
-include $(call o2d,$(cfeobj)) |
cfe/lib/ds/gnu.mk | ||
---|---|---|
11 | 11 | |
12 | 12 |
$(L)/libds.a: $(dsobj) |
13 | 13 | |
14 |
include $(call o2d,$(dsobj)) |
|
14 |
-include $(call o2d,$(dsobj)) |
drv/bin/drv/gnu.mk | ||
---|---|---|
5 | 5 | |
6 | 6 |
.PHONY: drv |
7 | 7 |
drv: $(B)/mcc |
8 |
cflags += -D_XOPEN_SOURCE=700
|
|
8 |
cflags += -D_XOPEN_SOURCE=500
|
|
9 | 9 | |
10 | 10 |
$(B)/mcc: $(drvbits)/main.o |
11 | 11 |
$(B)/mcc: $(drvbits)/util.o |
12 | 12 | |
13 |
include $(call o2d,$(drvobj)) |
|
13 |
-include $(call o2d,$(drvobj)) |
drv/bin/drv/main.c | ||
---|---|---|
525 | 525 |
int pid[10]; |
526 | 526 |
int st[10]; |
527 | 527 |
int pipepp[2],pipefe[2],pipelk[2]; |
528 |
int in,out;
|
|
529 |
char *tname; |
|
528 |
int in = -1,out = -1;
|
|
529 |
char *tname = NULL;
|
|
530 | 530 |
|
531 | 531 |
if (f->flag == OFILE) |
532 | 532 |
{ |
... | ... | |
550 | 550 |
|
551 | 551 |
tmpfiles = appendchar(tname,tmpfiles,TMPFILE); |
552 | 552 | |
553 |
pipe(pipepp);
|
|
554 |
pipe(pipefe);
|
|
555 |
pipe(pipelk);
|
|
553 |
if (pipe(pipepp) == -1);
|
|
554 |
if (pipe(pipefe) == -1);
|
|
555 |
if (pipe(pipelk) == -1);
|
|
556 | 556 |
} |
557 | 557 | |
558 | 558 |
|
drv/bin/drv/util.c | ||
---|---|---|
11 | 11 | |
12 | 12 |
extern int endcompil; |
13 | 13 |
extern int infiletype; |
14 |
extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW __wur; |
|
14 | 15 | |
15 | 16 |
char *helptext[]= |
16 | 17 |
{ |
gen/bin/gen/gnu.mk | ||
---|---|---|
12 | 12 |
$(B)/mc-lime-gen: $(genbits)/main.o $(PLIME)/lib/liblime.a $(PLCC)/lib/liblcc.a |
13 | 13 | |
14 | 14 |
$(call o2d,$(genobj)): cflags += -I $(ILIME) -I $(ILCC) |
15 |
include $(call o2d,$(genobj)) |
|
15 |
-include $(call o2d,$(genobj)) |
lcc/lib/lcc/c.h | ||
---|---|---|
151 | 151 |
void (*stabtype) (LSymbol); |
152 | 152 |
Xinterface x; |
153 | 153 |
} Interface; |
154 | ||
155 |
#if 0 /* Unused */ |
|
154 | 156 |
typedef struct binding { |
155 | 157 |
char *name; |
156 | 158 |
Interface *ir; |
157 | 159 |
} Binding; |
158 | 160 | |
159 | 161 |
extern Binding bindings[]; |
162 |
#endif |
|
160 | 163 |
extern Interface *IR; |
161 | 164 |
typedef struct { |
162 | 165 |
LList blockentry; |
lcc/lib/lcc/gnu.mk | ||
---|---|---|
44 | 44 | |
45 | 45 |
$(eval $(call headroute,lcc,$(lccnode))) |
46 | 46 | |
47 |
include $(call o2d,$(lccobj)) |
|
47 |
-include $(call o2d,$(lccobj)) |
lime/lib/lime/gnu.mk | ||
---|---|---|
1 | 1 |
lmbits := $(call bitspath) |
2 |
# lmnode := $(call nodepath)
|
|
2 |
lmnode := $(call nodepath) |
|
3 | 3 | |
4 | 4 |
lmsrc = \ |
5 | 5 |
rune.c \ |
... | ... | |
22 | 22 | |
23 | 23 | |
24 | 24 |
lminc = \ |
25 |
$(I)/lime/construct.h \ |
|
26 |
$(I)/lime/util.h \ |
|
27 |
$(I)/lime/heap.h |
|
25 |
construct.h \ |
|
26 |
util.h \ |
|
27 |
heap.h |
|
28 | ||
29 |
$(eval $(call headroute,lime,$(lmnode))) |
|
28 | 30 | |
29 | 31 |
lmobj = $(call c2o,$(lmbits),$(lmsrc)) |
30 | 32 | |
31 | 33 |
.PHONY: lmlib |
32 |
lmlib: $(L)/liblime.a $(lminc)
|
|
34 |
lmlib: $(L)/liblime.a $(addprefix $(I)/lime/,$(lminc))
|
|
33 | 35 | |
34 | 36 |
$(L)/liblime.a: $(lmobj) |
35 | 37 | |
36 | 38 |
# $(lmbits)/list.o: cflags += -D_XOPEN_SOURCE=700 $(strictfix) |
37 |
$(lmbits)/util.o: cflags += -D_XOPEN_SOURCE=700 $(strictfix) |
|
38 | ||
39 |
# $(eval $(call headroute,lime,$(lmnode))) |
|
39 |
$(lmbits)/util.o: cflags += -D_XOPEN_SOURCE=500 $(strictfix) |
|
40 | 40 | |
41 |
include $(call o2d,$(lmobj)) |
|
41 |
-include $(call o2d,$(lmobj)) |
lime/lib/lime/loaddag.c | ||
---|---|---|
87 | 87 |
static LoadCurrent ce( |
88 | 88 |
const LoadContext *const, List *const, List *const, List *const); |
89 | 89 | |
90 |
#ifndef isascii |
|
90 | 91 |
static unsigned isascii(const int c) |
91 | 92 |
{ |
92 | 93 |
return (c & 0x7f) == c; |
93 | 94 |
} |
95 |
#endif |
|
94 | 96 | |
95 | 97 |
static unsigned isfirstid(const int c) |
96 | 98 |
{ |
lime/lib/lime/util.c | ||
---|---|---|
11 | 11 | |
12 | 12 |
#define DBGFLAGS 0 |
13 | 13 | |
14 |
extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW __wur; |
|
15 | ||
14 | 16 |
unsigned middle(const unsigned a, const unsigned b) { |
15 | 17 |
return a + (b - a) / 2; |
16 | 18 |
} |
lime/tst/gnu.mk | ||
---|---|---|
51 | 51 |
$(T)/tst-evallists: $(lmtstbits)/tst-evallists.o $(lmlib) |
52 | 52 | |
53 | 53 |
$(call o2d,$(tstobj)): cflags += -I $(lmrootnode)/lib |
54 |
include $(call o2d,$(tstobj)) |
|
54 |
-include $(call o2d,$(tstobj)) |
mkenv/gnu/tcn/arch-gcc.mk | ||
---|---|---|
1 |
echo = echo -e |
|
1 |
echo = /bin/echo -e
|
|
2 | 2 | |
3 | 3 |
cc = gcc -Wall -Werror -pedantic -c -pipe |
4 | 4 |
cflags = |