GNOME Bugzilla – Bug 691866
fails out of source build directory - gnetwork.h not found
Last modified: 2013-01-23 17:51:10 UTC
Created attachment 233608 [details] [review] gio: Fixes out of source build directory. glib-mkenums is ran from srcdir, thus generated gnetworking.h needs to be provided via abs_builddir.
Created attachment 234025 [details] [review] 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/)
Comment on attachment 233608 [details] [review] gio: Fixes out of source build directory. >- gnetworking.h \ >+ $(abs_builddir)/gnetworking.h \ this is pretty ugly... I've attached an alternate approach
Thanks indeed it was ugly though my fu was not up to this issue. Thanks for the fix which works well.
Attachment 234025 [details] pushed as 455afd3 - build: fix a srcdir != builddir problem with gnetworking.h