200-cc_ccom_Makefile_in.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. $MirOS: ports/lang/pcc/patches/patch-cc_ccom_Makefile_in,v 1.4 2011/04/02 17:45:46 tg Exp $
  2. • fix missing @CPPFLAGS@
  3. • fix cross-compiling
  4. --- a/cc/ccom/Makefile.in.orig Sun Apr 11 15:00:40 2010
  5. +++ b/cc/ccom/Makefile.in Sat Apr 2 17:43:44 2011
  6. @@ -11,9 +11,14 @@ XFL=-DPCC_DEBUG
  7. CC = @CC@
  8. EXEEXT = @EXEEXT@
  9. CC_FOR_BUILD = @CC_FOR_BUILD@
  10. +CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
  11. +CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@ -D_ISOC99_SOURCE \
  12. + @ADD_CPPFLAGS@ ${XFL} -Dos_${TARGOS} -Dmach_${TARGMACH} \
  13. + -I${srcdir} -I${builddir} -I${top_builddir} -I${MIPDIR} -I${MDIR} \
  14. + -I${top_srcdir}/os/${TARGOS}
  15. _CFLAGS = @CFLAGS@
  16. CFLAGS = $(_CFLAGS) @ADD_CFLAGS@
  17. -CPPFLAGS = @ADD_CPPFLAGS@ ${XFL} -Dos_${TARGOS} -Dmach_${TARGMACH} \
  18. +CPPFLAGS = @CPPFLAGS@ @ADD_CPPFLAGS@ ${XFL} -Dos_${TARGOS} -Dmach_${TARGMACH} \
  19. -D_ISOC99_SOURCE \
  20. -I${srcdir} -I${builddir} -I${top_builddir} -I${MIPDIR} -I${MDIR} \
  21. -I${top_srcdir}/os/${TARGOS}
  22. @@ -92,7 +97,8 @@ compat.o: $(MIPDIR)/compat.c external.h
  23. $(CC) $(DEFS) $(CPPFLAGS) $(CFLAGS) -c -o $@ $(MIPDIR)/compat.c
  24. external.h external.c: ${MIPDIR}/mkext.c $(MDIR)/table.c
  25. - $(CC_FOR_BUILD) $(DEFS) $(CPPFLAGS) $(CFLAGS) -DMKEXT -o mkext \
  26. + $(CC_FOR_BUILD) $(DEFS) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD) \
  27. + -DMKEXT -o mkext \
  28. ${MIPDIR}/mkext.c $(MDIR)/table.c ${MIPDIR}/common.c
  29. ./mkext