aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/fbida/files/fix-preprocessor.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-08-08 14:48:00 -0700
committerArmin Kuster <akuster808@gmail.com>2017-09-13 17:16:28 -0700
commit4b01e200eb03695b3e98661b4eb18ec39b6e1445 (patch)
tree7e7df4a6f1e1d9a044e786788ffd531cd4c37b62 /meta-oe/recipes-graphics/fbida/files/fix-preprocessor.patch
parentaf09a2d721bc1979ebda3d8656e8aed73a92a14d (diff)
downloadmeta-openembedded-contrib-4b01e200eb03695b3e98661b4eb18ec39b6e1445.tar.gz
meta-openembedded-contrib-4b01e200eb03695b3e98661b4eb18ec39b6e1445.tar.bz2
meta-openembedded-contrib-4b01e200eb03695b3e98661b4eb18ec39b6e1445.zip
fbida: Fix build with libjpeg-turbo
Dont hardcode cpp to point to gcc collection, helps compiling with clang Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe/recipes-graphics/fbida/files/fix-preprocessor.patch')
-rw-r--r--meta-oe/recipes-graphics/fbida/files/fix-preprocessor.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/fbida/files/fix-preprocessor.patch b/meta-oe/recipes-graphics/fbida/files/fix-preprocessor.patch
new file mode 100644
index 0000000000..909a0a6c0f
--- /dev/null
+++ b/meta-oe/recipes-graphics/fbida/files/fix-preprocessor.patch
@@ -0,0 +1,14 @@
+Index: fbida-2.13/GNUmakefile
+===================================================================
+--- fbida-2.13.orig/GNUmakefile
++++ fbida-2.13/GNUmakefile
+@@ -53,8 +53,7 @@ include $(srcdir)/mk/Autoconf.mk
+
+ ac_jpeg_ver = $(shell \
+ $(call ac_init,for libjpeg version);\
+- $(call ac_s_cmd,echo JPEG_LIB_VERSION \
+- | cpp -include jpeglib.h | tail -n 1);\
++ $(call ac_s_cmd,cpp -include jpeglib.h -dM -E -x c /dev/null | grep 'define JPEG_LIB_VERSION' | cut -f 3 -d' ');\
+ $(call ac_fini))
+
+ define make-config