sunxi-mali: use only -I${includedir} as pkg-config Cflags
authorPeter Kümmel <syntheticpp@gmx.net>
Sun, 1 Jun 2014 10:18:28 +0000 (12:18 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 8 Jun 2014 16:52:14 +0000 (18:52 +0200)
commit1ff9045f4b62b53f55457f00a80d63e77acd758c
treec5621f9035115896dc5459346e8b6a2691cdd63d
parent05a734153908ee40d5c7a475b10c40e3f1796dd1
sunxi-mali: use only -I${includedir} as pkg-config Cflags

Using only -I${includedir} in common practice.

Settings only -I${includedir}/GLES2 breaks Qt5's CMake files,
because at configure time CMake only searchs the paths reported
by pkg-config, and not even /usr/include is used as default.

Even though pkg-config strips out standard include path, that's not
the case with pkgconf (which we are using) in cross-compilation,
which correctly reports the /usr/include dir prefixed with the
sysroot.

Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Kümmel <syntheticpp@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/sunxi-mali/egl.pc
package/sunxi-mali/glesv2.pc