diff options
author | Fam Zheng <famz@redhat.com> | 2015-05-07 14:55:15 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-05-08 14:45:11 +0200 |
commit | d24697e1824467f3921c84a94f011f43d6466403 (patch) | |
tree | c2f0e05a7db5e3732e4486c7dd75c5671fb13fd8 /Makefile | |
parent | 768b7855c86c4f46b605183ae9451e9af64ca288 (diff) | |
download | qemu-d24697e1824467f3921c84a94f011f43d6466403.zip qemu-d24697e1824467f3921c84a94f011f43d6466403.tar.gz qemu-d24697e1824467f3921c84a94f011f43d6466403.tar.bz2 |
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>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions