123456789101112131415161718192021222324252627282930313233 |
- $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
-
|