Re: [Qemu-devel] [PATCH v2] rules.mak: Force CFLAGS for all objects in DSO

2015-05-11 Thread Fam Zheng
On Tue, 05/12 00:24, Andreas Färber wrote: > Am 07.05.2015 um 08:55 schrieb Fam Zheng: > > Because of the trick of process-archive-undefs, all .mo objects, even > > with --enable-modules, are dependencies of executables. > > > > This breaks CFLAGS propogation because the compiling of module object

Re: [Qemu-devel] [PATCH v2] rules.mak: Force CFLAGS for all objects in DSO

2015-05-11 Thread Andreas Färber
Am 07.05.2015 um 08:55 schrieb Fam Zheng: > Because of the trick of process-archive-undefs, all .mo objects, even > with --enable-modules, are dependencies of executables. > > This breaks CFLAGS propogation because the compiling of module object > will happen too early before building for DSO. >

[Qemu-devel] [PATCH v2] rules.mak: Force CFLAGS for all objects in DSO

2015-05-06 Thread Fam Zheng
Because of the trick of process-archive-undefs, all .mo objects, even with --enable-modules, are dependencies of executables. This breaks CFLAGS propogation because the compiling of module object will happen too early before building for DSO. With GCC 5, the linking would fail because .o doesn't