aboutsummaryrefslogtreecommitdiff
path: root/rules.mak
diff options
context:
space:
mode:
authorMarc-André Lureau <mlureau@redhat.com>2013-02-25 23:31:12 +0100
committerAlon Levy <alevy@redhat.com>2013-04-24 11:47:38 +0300
commit37746c5eacf309fa019ea0fa45f776c36c561457 (patch)
tree95cac1c9110896195b7958705eea5d07decae7c6 /rules.mak
parentd3bf825e59125bc6a0accec0dca119ea0155cb82 (diff)
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.mak1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules.mak b/rules.mak
index edc2552f08..36aba2de1f 100644
--- a/rules.mak
+++ b/rules.mak
@@ -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