mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-30 03:52:41 +00:00
libglvnd: simplify the eglplatform.h hack
I got the logic backwards, and my testing didn't actually cover the case where it gets exercised. Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
@@ -40,7 +40,7 @@ do_install_append() {
|
||||
#make eglplatform.h independent of EGL_NO_X11
|
||||
# If necessary, fix up pkgconfig anyhow, for the benefit of SDK users
|
||||
if ${@bb.utils.contains('PACKAGECONFIG', 'x11', 'false', 'true', d)}; then
|
||||
sed -i -e 's/^\(#elif defined(__unix__) && defined(EGL_NO_X11)\)$/\1 || 0/' ${D}${includedir}/EGL/eglplatform.h
|
||||
sed -i -e 's!^#elif \(defined(__unix__) && defined(EGL_NO_X11)\)$!#elif 1 /* \1 */!' ${D}${includedir}/EGL/eglplatform.h
|
||||
sed -i -e 's|^Cflags: .*|& -DEGL_NO_X11|g' ${D}${libdir}/pkgconfig/libglvnd.pc ${D}${libdir}/pkgconfig/egl.pc
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user