mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
Use native glib-genmarshal when cross-compiling
The ability to cross-compile glib got broken after the merge of the 'signal-performance' branch as the assumption was made that the generated glib-genmarshal can be executed on the host (which isn't valid when cross-compiling). Fixed this by using the just-built glib-genmarshal for normal compilations and the native (host) glib-genmarshal when doing a cross-compilation as was also done in several other areas of GLib Tested for host=x86_64-unknown-linux-gnu, target=x86_64-unknown-linux-gnu and host=x86_64-unknown-linux-gnu, target=i686-w64-mingw32 https://bugzilla.gnome.org/show_bug.cgi?id=671676
This commit is contained in:
parent
3fa7358487
commit
7b939efa6f
@ -2,6 +2,12 @@ include $(top_srcdir)/Makefile.decl
|
||||
|
||||
INCLUDES = -g $(gobject_INCLUDES) $(GLIB_DEBUG_FLAGS)
|
||||
|
||||
if CROSS_COMPILING
|
||||
glib_genmarshal=$(GLIB_GENMARSHAL)
|
||||
else
|
||||
glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
|
||||
endif
|
||||
|
||||
noinst_PROGRAMS = $(TEST_PROGS)
|
||||
LDADD = ../libgobject-2.0.la $(top_builddir)/gthread/libgthread-2.0.la $(top_builddir)/glib/libglib-2.0.la
|
||||
|
||||
@ -21,10 +27,10 @@ TEST_PROGS += \
|
||||
signals_SOURCES = signals.c marshalers.c
|
||||
|
||||
marshalers.h: Makefile.am marshalers.list
|
||||
$(AM_V_GEN) ../glib-genmarshal --prefix=test $(srcdir)/marshalers.list --header --valist-marshallers > marshalers.h
|
||||
$(AM_V_GEN) $(glib_genmarshal) --prefix=test $(srcdir)/marshalers.list --header --valist-marshallers > marshalers.h
|
||||
|
||||
marshalers.c: Makefile.am marshalers.list
|
||||
$(AM_V_GEN) ../glib-genmarshal --prefix=test $(srcdir)/marshalers.list --body --valist-marshallers > marshalers.c
|
||||
$(AM_V_GEN) $(glib_genmarshal) --prefix=test $(srcdir)/marshalers.list --body --valist-marshallers > marshalers.c
|
||||
|
||||
BUILT_SOURCES = marshalers.h marshalers.c
|
||||
CLEANFILES = marshalers.h marshalers.c
|
||||
|
Loading…
Reference in New Issue
Block a user