]> git.proxmox.com Git - mirror_qemu.git/commit - rules.mak
rules.mak: Force CFLAGS for all objects in DSO
authorFam Zheng <famz@redhat.com>
Thu, 7 May 2015 06:55:15 +0000 (14:55 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 8 May 2015 12:45:11 +0000 (14:45 +0200)
commitd24697e1824467f3921c84a94f011f43d6466403
treec2f0e05a7db5e3732e4486c7dd75c5671fb13fd8
parent768b7855c86c4f46b605183ae9451e9af64ca288
rules.mak: Force CFLAGS for all objects in DSO

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 have -fPIC. Also,
BUILD_DSO will be missed. (module-common.o will have it, so the stamp
symbol was still liked in .so).

Fix the problem by forcing the CFLAGS on individual .o-cflags during
unnest-vars.

Reported-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Fam Zheng <famz@redhat.com>
Cc: qemu-stable@nongnu.org # 2.3
Message-Id: <1430981715-31465-1-git-send-email-famz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rules.mak