25088208 cogl & mutter fail to build with NVIDIA R304 OpenGL drivers
authorAlan Coopersmith <Alan.Coopersmith@Oracle.COM>
Sat, 12 Nov 2016 17:53:39 -0800
changeset 7337 c2818a459e7b
parent 7336 1c99429f2647
child 7338 4811df8d9799
25088208 cogl & mutter fail to build with NVIDIA R304 OpenGL drivers
components/gnome/cogl/Makefile
components/gnome/mutter/Makefile
--- a/components/gnome/cogl/Makefile	Wed Nov 16 18:51:56 2016 -0800
+++ b/components/gnome/cogl/Makefile	Sat Nov 12 17:53:39 2016 -0800
@@ -50,6 +50,9 @@
 
 include $(WS_MAKE_RULES)/gnome-component.mk
 
+# Workaround build failures when /usr/include/GL points to Nvidia's headers
+COMPONENT_PREP_ACTION += $(SYMLINK) /usr/include/mesa $(@D)/GL ;
+
 CONFIGURE_OPTION += --disable-static
 # Required for other components.
 CONFIGURE_OPTIONS += --enable-glib
--- a/components/gnome/mutter/Makefile	Wed Nov 16 18:51:56 2016 -0800
+++ b/components/gnome/mutter/Makefile	Sat Nov 12 17:53:39 2016 -0800
@@ -45,6 +45,10 @@
 
 include $(WS_MAKE_RULES)/gnome-component.mk
 
+# Workaround build failures when /usr/include/GL points to Nvidia's headers
+COMPONENT_PREP_ACTION += $(SYMLINK) /usr/include/mesa $(@D)/GL ;
+CPPFLAGS += -I $(SOURCE_DIR)
+
 # Requires non-standard extensions.
 CFLAGS += -std=c99 -D__EXTENSIONS__