diff options
author | Marc-André Lureau <mlureau@redhat.com> | 2013-02-25 23:31:12 +0100 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2013-04-24 11:47:38 +0300 |
commit | 37746c5eacf309fa019ea0fa45f776c36c561457 (patch) | |
tree | 95cac1c9110896195b7958705eea5d07decae7c6 /rules.mak | |
parent | d3bf825e59125bc6a0accec0dca119ea0155cb82 (diff) | |
download | qemu-37746c5eacf309fa019ea0fa45f776c36c561457.tar.gz qemu-37746c5eacf309fa019ea0fa45f776c36c561457.tar.bz2 qemu-37746c5eacf309fa019ea0fa45f776c36c561457.zip |
build-sys: must link with -fstack-protector
It is needed to give that flag to the linker as well, but latest
libtool 2.4.2 still swallows that argument, so let's pass it with
libtool -Wc argument.
qemu-1.4.0/stubs/arch-query-cpu-def.c:6: undefined reference to `__stack_chk_guard'
Signed-off-by: Marc-André Lureau <mlureau@redhat.com>
Reviewed-by: Alon Levy <alevy@redhat.com>
Diffstat (limited to 'rules.mak')
-rw-r--r-- | rules.mak | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -36,6 +36,7 @@ LINK = $(call quiet-command,\ $(if $(filter %.lo %.la,$^),$(LIBTOOL) --mode=link --tag=CC \ )$(CC) $(QEMU_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ \ $(sort $(filter %.o, $1)) $(filter-out %.o, $1) $(version-obj-y) \ + $(if $(filter %.lo %.la,$^),$(LIBTOOLFLAGS)) \ $(LIBS),$(if $(filter %.lo %.la,$^),"lt LINK ", " LINK ")"$(TARGET_DIR)$@") endif |