GNOME Bugzilla – Bug 616216
glib compile from remote directory fails
Last modified: 2010-05-12 21:03:39 UTC
Created attachment 159110 [details] [review] Patch to fix "remote" build error in glib Trying to compile glib from outside the source directory fails, with this error: ccache gcc -DHAVE_CONFIG_H -I. -I../../../../glib/gthread/tests -I../.. -g -I../../../../glib -I../../../../glib/glib -DG_ENABLE_DEBUG -DG_DISABLE_SINGLE_INCLUDES -pthread -DTEST_EMULATED_FUTEX -g -Wall -MT 1bit_emufutex-1bit-mutex.o -MD -MP -MF .deps/1bit_emufutex-1bit-mutex.Tpo -c -o 1bit_emufutex-1bit-mutex.o `test -f '1bit-mutex.c' || echo '../../../../glib/gthread/tests/'`1bit-mutex.c In file included from ../../../../glib/gthread/tests/1bit-mutex.c:42: ../../../../glib/glib/gbitlock.c:32:20: error: galias.h: No such file or directory ../../../../glib/glib/gbitlock.c:300:23: error: galiasdef.c: No such file or directory make[4]: *** [1bit_emufutex-1bit-mutex.o] Error 1 make[4]: Leaving directory `/home/src/evo/evo-master/obj/glib/gthread/tests' make[3]: *** [all-recursive] Error 1 This is because galias.h and galiasdef.c are created as part of the build and live in the object directory, not the source directory.
Hi all; I noticed this bug exists in the glib-2.24 branch as well; can it be fixed there?
*** Bug 617756 has been marked as a duplicate of this bug. ***
Patch applied to 2.24 branch too in commit 2e43d1e614c328cf6514282307e06dfb63ca9ed7