1 AM_CPPFLAGS = -I $(top_srcdir)/include -I $(top_srcdir)
3 # May be used by toolexeclibdir.
4 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
6 DEFS = -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
7 AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros
8 AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
9 AM_CXXFLAGS += -std=gnu++11
10 ACLOCAL_AMFLAGS = -I m4
12 noinst_LTLIBRARIES = libsanitizer_lsan.la
14 toolexeclib_LTLIBRARIES = liblsan.la
17 sanitizer_lsan_files = \
22 $(sanitizer_lsan_files) \
25 lsan_interceptors.cc \
29 libsanitizer_lsan_la_SOURCES = $(sanitizer_lsan_files)
31 liblsan_la_SOURCES = $(lsan_files)
32 liblsan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/interception/libinterception.la
33 if LIBBACKTRACE_SUPPORTED
34 liblsan_la_LIBADD += $(top_builddir)/libbacktrace/libsanitizer_libbacktrace.la
36 liblsan_la_LIBADD += $(LIBSTDCXX_RAW_CXX_LDFLAGS)
37 liblsan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(link_liblsan)
39 # Work around what appears to be a GNU make bug handling MAKEFLAGS
40 # values defined in terms of make variables, as is the case for CC and
41 # friends when we are called from the top level Makefile.
43 "AR_FLAGS=$(AR_FLAGS)" \
44 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
46 "CXXFLAGS=$(CXXFLAGS)" \
47 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
48 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
49 "INSTALL=$(INSTALL)" \
50 "INSTALL_DATA=$(INSTALL_DATA)" \
51 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
52 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
53 "JC1FLAGS=$(JC1FLAGS)" \
54 "LDFLAGS=$(LDFLAGS)" \
55 "LIBCFLAGS=$(LIBCFLAGS)" \
56 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
58 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
59 "PICFLAG=$(PICFLAG)" \
60 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
62 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
63 "exec_prefix=$(exec_prefix)" \
64 "infodir=$(infodir)" \
67 "includedir=$(includedir)" \
71 "LIBCFLAGS=$(LIBCFLAGS)" \
73 "PICFLAG=$(PICFLAG)" \
79 ## ################################################################