aboutsummaryrefslogtreecommitdiff
path: root/development/pcc-libs/002-build-libpcc-with-pcc.patch
blob: 4dac809e8a490a0506caf2d51a7ffe5043ee1509 (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
Description: Fix buildsystem
 - Enable us to build pcc-libs with pcc
Author: Thorsten Glaser <tg@mirbsd.de>
Forwarded: http://article.gmane.org/gmane.comp.compilers.pcc/2094
Last-Update: $MirOS: contrib/hosted/tg/deb/pcc/debian/patches/002-build-libpcc-with-pcc,v 1.1 2011/04/22 19:15:01 tg Exp $

--- pcc-libs-1.0.0/libsoftfloat/Makefile.in
+++ pcc-libs-1.0.0/libsoftfloat/Makefile.in
@@ -18,6 +18,7 @@ VERSION = @version@
 PCCLIBDIR = $(libdir)/pcc/$(TARGET)/$(VERSION)/lib
 
 CPPFLAGS += @CPPFLAGS@ -DSOFTFLOAT_FOR_GCC -I$(srcdir) -I$(srcdir)/arch/$(TARGMACH)
+CPPFLAGS += -isystem $(top_srcdir)/libpcc/include
 
 LIBS = @LIBS@
 AR = @AR@
--- pcc-libs-1.0.0/libpcc/Makefile.in
+++ pcc-libs-1.0.0/libpcc/Makefile.in
@@ -20,6 +20,7 @@ PCCLIBDIR = $(libdir)/pcc/$(TARGET)/$(VE
 PCCINCDIR = $(libdir)/pcc/$(TARGET)/$(VERSION)/include
 
 CPPFLAGS += @CPPFLAGS@ -I$(srcdir) @ENDIAN_FLAG@ -Dos_$(TARGOS)
+CPPFLAGS += -isystem $(top_srcdir)/libpcc/include
 
 LIBS = @LIBS@
 AR = @AR@