mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 12:25:48 +01:00
build: fix a srcdir != builddir problem with gnetworking.h
gio's glib-mkenums call needs to get gnetworking.h out of $(builddir), not $(srcdir). Fix/simplify it by using $(filter) on $^ and letting make find everything. Also add -Wno-portability to AM_INIT_AUTOMAKE in configure.ac, so that it doesn't warn about this (or about the gmake-specific features we were already using in gio/tests/) https://bugzilla.gnome.org/show_bug.cgi?id=691866
This commit is contained in:
parent
d8874e58a7
commit
455afd3545
@ -63,7 +63,7 @@ AC_CONFIG_MACRO_DIR([m4macros])
|
|||||||
# Save this value here, since automake will set cflags later
|
# Save this value here, since automake will set cflags later
|
||||||
cflags_set=${CFLAGS+set}
|
cflags_set=${CFLAGS+set}
|
||||||
|
|
||||||
AM_INIT_AUTOMAKE([1.11 no-define no-dist-gzip dist-xz tar-ustar])
|
AM_INIT_AUTOMAKE([1.11 -Wno-portability no-define no-dist-gzip dist-xz tar-ustar])
|
||||||
AM_MAINTAINER_MODE([enable])
|
AM_MAINTAINER_MODE([enable])
|
||||||
|
|
||||||
# Support silent build rules. Disable
|
# Support silent build rules. Disable
|
||||||
|
@ -653,13 +653,11 @@ DISTCLEANFILES = \
|
|||||||
all-local: gio-public-headers.txt
|
all-local: gio-public-headers.txt
|
||||||
|
|
||||||
gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
|
gioenumtypes.h: $(gio_headers) gioenumtypes.h.template
|
||||||
$(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
|
$(AM_V_GEN) $(top_builddir)/gobject/glib-mkenums --template $(filter %.template,$^) $(filter-out %.template,$^) > \
|
||||||
cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.h.template $(gio_headers) ) > \
|
|
||||||
gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
|
gioenumtypes.h.tmp && mv gioenumtypes.h.tmp gioenumtypes.h
|
||||||
|
|
||||||
gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
|
gioenumtypes.c: $(gio_headers) gioenumtypes.c.template
|
||||||
$(AM_V_GEN) ( top_builddir=`cd $(top_builddir) && pwd`; \
|
$(AM_V_GEN) $(top_builddir)/gobject/glib-mkenums --template $(filter %.template,$^) $(filter-out %.template,$^) > \
|
||||||
cd $(srcdir) && $$top_builddir/gobject/glib-mkenums --template gioenumtypes.c.template $(gio_headers) ) > \
|
|
||||||
gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
|
gioenumtypes.c.tmp && mv gioenumtypes.c.tmp gioenumtypes.c
|
||||||
|
|
||||||
gio-2.0.lib: libgio-2.0.la gio.def
|
gio-2.0.lib: libgio-2.0.la gio.def
|
||||||
|
Loading…
x
Reference in New Issue
Block a user