GNOME Bugzilla – Bug 758475
Examples fail if backend is disabled
Last modified: 2016-01-11 19:57:01 UTC
If I disable the backend with --disable-backend then I can no longer build the examples. The reason is, that REST_CFLAGS is defined in the backend section in configure.ac, and this is needed by the examples to build the lastfm example. To resolve this there are two options: 1. Move the REST_CFLAGS out of the backend section (in configure.ac) 2. Make the building of examples conditional on the backend being enabled (in src/Makefile.am) 3. Do not build the lastfm example if the backend is disabled, and probably also not if lastfm is disabled.
(In reply to Sebastian from comment #0) > If I disable the backend with --disable-backend then I can no longer build > the examples. The reason is, that REST_CFLAGS is defined in the backend > section in configure.ac, and this is needed by the examples to build the > lastfm example. I swear I build tested bug 751128 with both values of the option. Maybe I forgot to 'git clean -fdx' between the runs. :/ > To resolve this there are two options: > > 1. Move the REST_CFLAGS out of the backend section (in configure.ac) > 2. Make the building of examples conditional on the backend being enabled > (in src/Makefile.am) > 3. Do not build the lastfm example if the backend is disabled, and probably > also not if lastfm is disabled. I prefer (2) because it is not just REST. One of the examples really do need the backend to be built.
Created attachment 318756 [details] [review] build: Make it possible to disable the backend build
Pushed to master and gnome-3-18.
Thank you Ray. :)