Linux Clang -fsanitize=address does not like -z defs

Change-Id: Ie64d5fe5100a6da7a9bb591da65980d2080fb84f
This commit is contained in:
Stephan Bergmann
2014-05-12 13:56:32 +02:00
parent 096d1d6e7c
commit f90fce6568

View File

@@ -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: