1 AM_CPPFLAGS = -I $(top_srcdir)/include -isystem $(top_srcdir)/include/system
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 if LIBBACKTRACE_SUPPORTED
10 AM_CXXFLAGS += -DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_DEMANGLE \
11 -I $(top_srcdir)/../libbacktrace \
12 -I $(top_builddir)/libbacktrace \
13 -I $(top_srcdir)/../include \
14 -include $(top_srcdir)/libbacktrace/backtrace-rename.h
16 ACLOCAL_AMFLAGS = -I m4
18 noinst_LTLIBRARIES = libsanitizer_common.la
20 sanitizer_common_files = \
21 sanitizer_allocator.cc \
23 sanitizer_common_libcdep.cc \
24 sanitizer_coverage.cc \
27 sanitizer_libignore.cc \
29 sanitizer_linux_libcdep.cc \
31 sanitizer_platform_limits_linux.cc \
32 sanitizer_platform_limits_posix.cc \
33 sanitizer_posix_libcdep.cc \
36 sanitizer_stackdepot.cc \
37 sanitizer_stacktrace.cc \
38 sanitizer_stacktrace_libcdep.cc \
39 sanitizer_stoptheworld_linux_libcdep.cc \
40 sanitizer_suppressions.cc \
41 sanitizer_symbolizer_posix_libcdep.cc \
42 sanitizer_symbolizer_win.cc \
43 sanitizer_symbolizer.cc \
44 sanitizer_symbolizer_libbacktrace.cc \
45 sanitizer_symbolizer_libcdep.cc \
46 sanitizer_thread_registry.cc \
49 libsanitizer_common_la_SOURCES = $(sanitizer_common_files)
51 # Work around what appears to be a GNU make bug handling MAKEFLAGS
52 # values defined in terms of make variables, as is the case for CC and
53 # friends when we are called from the top level Makefile.
55 "AR_FLAGS=$(AR_FLAGS)" \
56 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
58 "CXXFLAGS=$(CXXFLAGS)" \
59 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
60 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
61 "INSTALL=$(INSTALL)" \
62 "INSTALL_DATA=$(INSTALL_DATA)" \
63 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
64 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
65 "JC1FLAGS=$(JC1FLAGS)" \
66 "LDFLAGS=$(LDFLAGS)" \
67 "LIBCFLAGS=$(LIBCFLAGS)" \
68 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
70 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
71 "PICFLAG=$(PICFLAG)" \
72 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
74 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
75 "exec_prefix=$(exec_prefix)" \
76 "infodir=$(infodir)" \
79 "includedir=$(includedir)" \
83 "LIBCFLAGS=$(LIBCFLAGS)" \
85 "PICFLAG=$(PICFLAG)" \
91 ## ################################################################