summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-05-12 13:56:32 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-05-12 13:56:32 +0200
commitf90fce6568a04c67df9f487406831d7fdd5828e2 (patch)
tree2f494c4f3e792bafef6b7c3170c01ecd0934d83f /solenv
parent096d1d6e7cb52591e30eb9ae16ff6eb562f9dbf1 (diff)
Linux Clang -fsanitize=address does not like -z defs
Change-Id: Ie64d5fe5100a6da7a9bb591da65980d2080fb84f
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/platform/linux.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/linux.mk b/solenv/gbuild/platform/linux.mk
index 4ffa8684e325..88216b6b3bfc 100644
--- a/solenv/gbuild/platform/linux.mk
+++ b/solenv/gbuild/platform/linux.mk
@@ -7,9 +7,12 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
+ifneq ($(COM_GCC_IS_CLANG)$(filter -fsanitize=address,$(CC)),TRUE-fsanitize=address)
gb_LinkTarget_LDFLAGS += \
-Wl,-z,defs \
+endif
+
include $(GBUILDDIR)/platform/unxgcc.mk
# vim: set noet sw=4 ts=4: