package/leveldb: fix build for gcc < 5.x
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sat, 26 Oct 2019 19:27:07 +0000 (21:27 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 27 Oct 2019 09:16:18 +0000 (10:16 +0100)
commit8488c0eeeb8c609aec053a7395ea7ddb94ef3152
treefb2356e6446354e6ddb68d5a7a9ce1714c3c0d0f
parente8d0df569e1844f7ba28918a53ee38027b325b8f
package/leveldb: fix build for gcc < 5.x

Without defining LEVELDB_HAS_PORT_CONFIG_H port/port_config.h will not
be included:
https://github.com/google/leveldb/blob/master/port/port_stdcxx.h#L8

which breaks endian detection. Add the define to our memenv patch to fix
building with gcc < 5.
__has_include was added in gcc5: https://gcc.gnu.org/gcc-5/changes.html

Fixes:
http://autobuild.buildroot.net/results/4ac/4ac8fbed79307326086ab294eba9e68cf208e6ac/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/leveldb/0002-CMake-install-libmemenv.a.patch