build: ...and now fix build without GLES2
Defining *_la_CPPFLAGS var in "if...endif" block breaks generation of Makefile.in - automake assumes it's defined unconditionally and uses it for building objects. So we need to define it properly in both cases. Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
This commit is contained in:
parent
beb7c25137
commit
010403eb8a
@ -270,6 +270,8 @@ libkmscon_static_la_SOURCES = \
|
|||||||
src/static_misc.c \
|
src/static_misc.c \
|
||||||
external/htable.h \
|
external/htable.h \
|
||||||
external/htable.c
|
external/htable.c
|
||||||
|
libkmscon_static_la_CPPFLAGS = \
|
||||||
|
$(AM_CPPFLAGS)
|
||||||
|
|
||||||
if KMSCON_HAVE_GLES2
|
if KMSCON_HAVE_GLES2
|
||||||
nodist_libkmscon_static_la_SOURCES = \
|
nodist_libkmscon_static_la_SOURCES = \
|
||||||
@ -278,8 +280,7 @@ nodist_libkmscon_static_la_SOURCES = \
|
|||||||
src/static_gl_shader.c \
|
src/static_gl_shader.c \
|
||||||
src/static_shaders.c
|
src/static_shaders.c
|
||||||
|
|
||||||
libkmscon_static_la_CPPFLAGS = \
|
libkmscon_static_la_CPPFLAGS += \
|
||||||
$(AM_CPPFLAGS) \
|
|
||||||
$(GLES2_CFLAGS)
|
$(GLES2_CFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user