blob: 31e051edd275db417654a67785f8b6e7191ec29a (
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
|
$MirOS: ports/lang/pcc/patches/patch-cc_ccom_Makefile_in,v 1.4 2011/04/02 17:45:46 tg Exp $
• fix missing @CPPFLAGS@
• fix cross-compiling
--- a/cc/ccom/Makefile.in.orig Sun Apr 11 15:00:40 2010
+++ b/cc/ccom/Makefile.in Sat Apr 2 17:43:44 2011
@@ -11,9 +11,14 @@ XFL=-DPCC_DEBUG
CC = @CC@
EXEEXT = @EXEEXT@
CC_FOR_BUILD = @CC_FOR_BUILD@
+CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
+CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@ -D_ISOC99_SOURCE \
+ @ADD_CPPFLAGS@ ${XFL} -Dos_${TARGOS} -Dmach_${TARGMACH} \
+ -I${srcdir} -I${builddir} -I${top_builddir} -I${MIPDIR} -I${MDIR} \
+ -I${top_srcdir}/os/${TARGOS}
_CFLAGS = @CFLAGS@
CFLAGS = $(_CFLAGS) @ADD_CFLAGS@
-CPPFLAGS = @ADD_CPPFLAGS@ ${XFL} -Dos_${TARGOS} -Dmach_${TARGMACH} \
+CPPFLAGS = @CPPFLAGS@ @ADD_CPPFLAGS@ ${XFL} -Dos_${TARGOS} -Dmach_${TARGMACH} \
-D_ISOC99_SOURCE \
-I${srcdir} -I${builddir} -I${top_builddir} -I${MIPDIR} -I${MDIR} \
-I${top_srcdir}/os/${TARGOS}
@@ -92,7 +97,8 @@ compat.o: $(MIPDIR)/compat.c external.h
$(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c -o $@ $(MIPDIR)/compat.c
external.h external.c: ${MIPDIR}/mkext.c $(MDIR)/table.c
- $(CC_FOR_BUILD) $(DEFS) $(CPPFLAGS) $(CFLAGS) -DMKEXT -o mkext \
+ $(CC_FOR_BUILD) $(DEFS) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) \
+ -DMKEXT -o mkext \
${MIPDIR}/mkext.c $(MDIR)/table.c ${MIPDIR}/common.c
./mkext
|