mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
[build] Link Cogl against -lm
We use math routines inside Cogl, so it's correct to have it in the LIBADD line. In normal usage something else was pulling in -lm, but the introspection is relying on linking against the convenience library. Based on a patch by: Colin Walters <walters@verbum.org> Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
parent
cbe4767796
commit
642f551321
@ -7,17 +7,13 @@ INCLUDES = \
|
|||||||
-I$(top_builddir)/clutter \
|
-I$(top_builddir)/clutter \
|
||||||
-I$(top_builddir)/clutter/cogl \
|
-I$(top_builddir)/clutter/cogl \
|
||||||
-DG_LOG_DOMAIN=\"Cogl-Common\" \
|
-DG_LOG_DOMAIN=\"Cogl-Common\" \
|
||||||
-DCLUTTER_COMPILATION \
|
-DCLUTTER_COMPILATION
|
||||||
$(CLUTTER_CFLAGS) \
|
|
||||||
$(CLUTTER_DEBUG_CFLAGS) \
|
|
||||||
$(MAINTAINER_CFLAGS) \
|
|
||||||
$(GCC_FLAGS)
|
|
||||||
|
|
||||||
LDADD = $(CLUTTER_LIBS)
|
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libclutter-cogl-common.la
|
noinst_LTLIBRARIES = libclutter-cogl-common.la
|
||||||
EXTRA_DIST = stb_image.c
|
EXTRA_DIST = stb_image.c
|
||||||
|
|
||||||
|
libclutter_cogl_common_la_CPPFLAGS = $(CLUTTER_CFLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS)
|
||||||
|
libclutter_cogl_common_la_LIBADD = -lm $(CLUTTER_LIBS)
|
||||||
libclutter_cogl_common_la_SOURCES = \
|
libclutter_cogl_common_la_SOURCES = \
|
||||||
cogl-handle.h \
|
cogl-handle.h \
|
||||||
cogl-internal.h \
|
cogl-internal.h \
|
||||||
|
@ -51,12 +51,11 @@ INCLUDES = \
|
|||||||
-DG_LOG_DOMAIN=\"Cogl-GL\" \
|
-DG_LOG_DOMAIN=\"Cogl-GL\" \
|
||||||
-DCLUTTER_COMPILATION
|
-DCLUTTER_COMPILATION
|
||||||
|
|
||||||
AM_CPPFLAGS = $(CLUTTER_CFLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS)
|
|
||||||
|
|
||||||
LDADD = $(CLUTTER_LIBS)
|
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libclutter-cogl.la
|
noinst_LTLIBRARIES = libclutter-cogl.la
|
||||||
|
|
||||||
|
libclutter_cogl_la_CPPFLAGS = $(CLUTTER_CFLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS)
|
||||||
|
libclutter_cogl_la_LIBADD = -lm $(CLUTTER_LIBS) $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la
|
||||||
|
libclutter_cogl_la_DEPENDENCIES = $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la
|
||||||
libclutter_cogl_la_SOURCES = \
|
libclutter_cogl_la_SOURCES = \
|
||||||
$(top_builddir)/clutter/cogl/cogl.h \
|
$(top_builddir)/clutter/cogl/cogl.h \
|
||||||
$(cogl_headers) \
|
$(cogl_headers) \
|
||||||
@ -65,5 +64,3 @@ libclutter_cogl_la_SOURCES = \
|
|||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
EXTRA_DIST = cogl-defines.h.in
|
EXTRA_DIST = cogl-defines.h.in
|
||||||
|
|
||||||
libclutter_cogl_la_LIBADD = $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la
|
|
||||||
|
@ -25,16 +25,13 @@ INCLUDES = \
|
|||||||
-I$(top_builddir)/clutter \
|
-I$(top_builddir)/clutter \
|
||||||
-I$(top_builddir)/clutter/cogl \
|
-I$(top_builddir)/clutter/cogl \
|
||||||
-DG_LOG_DOMAIN=\"Cogl-GLES\" \
|
-DG_LOG_DOMAIN=\"Cogl-GLES\" \
|
||||||
-DCLUTTER_COMPILATION \
|
-DCLUTTER_COMPILATION
|
||||||
$(CLUTTER_CFLAGS) \
|
|
||||||
$(CLUTTER_DEBUG_CFLAGS) \
|
|
||||||
$(MAINTAINER_CFLAGS) \
|
|
||||||
$(GCC_FLAGS)
|
|
||||||
|
|
||||||
LDADD = $(CLUTTER_LIBS)
|
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libclutter-cogl.la
|
noinst_LTLIBRARIES = libclutter-cogl.la
|
||||||
|
|
||||||
|
libclutter_cogl_la_CPPFLAGS = $(CLUTTER_CFLAGS) $(CLUTTER_DEBUG_CFLAGS) $(MAINTAINER_CFLAGS)
|
||||||
|
libclutter_cogl_la_LIBADD = -lm $(CLUTTER_LIBS) $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la
|
||||||
|
libclutter_cogl_la_DEPENDENCIES = $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la
|
||||||
libclutter_cogl_la_SOURCES = \
|
libclutter_cogl_la_SOURCES = \
|
||||||
$(top_builddir)/clutter/cogl/cogl.h \
|
$(top_builddir)/clutter/cogl/cogl.h \
|
||||||
$(top_builddir)/clutter/cogl/cogl-defines-gles.h \
|
$(top_builddir)/clutter/cogl/cogl-defines-gles.h \
|
||||||
@ -77,8 +74,6 @@ EXTRA_DIST = cogl-defines.h.in \
|
|||||||
cogl-fixed-vertex-shader.glsl \
|
cogl-fixed-vertex-shader.glsl \
|
||||||
cogl-fixed-fragment-shader.glsl
|
cogl-fixed-fragment-shader.glsl
|
||||||
|
|
||||||
libclutter_cogl_la_LIBADD = $(top_builddir)/clutter/cogl/common/libclutter-cogl-common.la
|
|
||||||
|
|
||||||
.glsl.h :
|
.glsl.h :
|
||||||
/bin/sh $(top_srcdir)/clutter/cogl/gles/stringify.sh -h $<
|
/bin/sh $(top_srcdir)/clutter/cogl/gles/stringify.sh -h $<
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user