1 From 2b395fb3f07551ae1ce2e484c14ac59f36e192b0 Mon Sep 17 00:00:00 2001
2 From: Bernd Kuhls <bernd.kuhls@t-online.de>
3 Date: Thu, 17 Mar 2016 21:47:53 +0100
4 Subject: [PATCH] native/TexturePacker: fix compilation with gcc 4.6
6 Kodi itself depends on gcc >= 4.7 due to its use of the C++11 standard.
7 When cross-compiling the host gcc currently also needs to be >= 4.7 due
8 to the texturepacker tool being needed as native binary to compile
9 Textures.xbt for the target system.
11 Cross-compiling on a system where host gcc is at version 4.6 fails atm
14 cc1plus: error: unrecognized command line option '-std=c++11'
15 make[4]: *** [md5.o] Error 1
16 make[4]: *** Waiting for unfinished jobs....
17 cc1plus: error: unrecognized command line option '-std=c++11'
18 cc1plus: error: unrecognized command line option '-std=c++11'
20 make[4]: *** [DecoderManager.o] Error 1
21 make[4]: *** [XBTFWriter.o] Error 1
22 cc1plus: error: unrecognized command line option '-std=c++11'
23 make[4]: *** [TexturePacker.o] Error 1
24 cc1plus: error: unrecognized command line option '-std=c++11'
25 make[4]: *** [decoder/PNGDecoder.o] Error 1
26 make[3]: *** [all] Error 2
27 make[2]: *** [native/TexturePacker] Error 2
29 Using this patch the problem is fixed and a working TexturePacker host
32 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
33 Patch sent upstream: https://github.com/xbmc/xbmc/pull/9378
35 tools/depends/native/TexturePacker/src/Makefile.am | 2 +-
36 1 file changed, 1 insertion(+), 1 deletion(-)
38 diff --git a/tools/depends/native/TexturePacker/src/Makefile.am b/tools/depends/native/TexturePacker/src/Makefile.am
39 index c1fc8be..d075290 100644
40 --- a/tools/depends/native/TexturePacker/src/Makefile.am
41 +++ b/tools/depends/native/TexturePacker/src/Makefile.am
42 @@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = subdir-objects
44 AM_CFLAGS = -DTARGET_POSIX -DUSE_LZO_PACKING
45 AM_CFLAGS += @EXTRA_DEFINES@
46 -AM_CXXFLAGS = $(AM_CFLAGS) -std=c++11
47 +AM_CXXFLAGS = $(AM_CFLAGS) -std=c++0x