The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / duma / 0001-fix-cross-compilation.patch
1 Allow cross compilation. Adapted from crosstool-ng.
2
3 Signed-off-by: Baruch Siach <baruch at tkos.co.il>
4
5 Index: b/GNUmakefile
6 ===================================================================
7 --- a/GNUmakefile
8 +++ b/GNUmakefile
9 @@ -93,10 +93,6 @@
10  # also define 'WIN32'
11  
12  # some defaults:
13 -CC=gcc
14 -CXX=g++
15 -AR=ar
16 -RANLIB=ranlib
17  INSTALL=install
18  RM=rm
19  RMFORCE=rm -f
20 @@ -471,7 +467,7 @@
21  
22  createconf$(EXEPOSTFIX): createconf.o
23         - $(RMFORCE) createconf$(EXEPOSTFIX)
24 -       $(CC) $(CFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
25 +       $(CC_FOR_BUILD) $(HOST_CFLAGS) $(DUMA_OPTIONS) createconf.o -o createconf$(EXEPOSTFIX)
26  
27  tstheap$(EXEPOSTFIX): libduma.a tstheap.o
28         - $(RMFORCE) tstheap$(EXEPOSTFIX)
29 @@ -532,7 +528,7 @@
30  # define rules how to build objects for createconf
31  #
32  createconf.o:
33 -       $(CC) $(CFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
34 +       $(CC_FOR_BUILD) $(HOST_CFLAGS) $(DUMA_OPTIONS) -c createconf.c -o $@
35  
36  
37  #