1 AM_CPPFLAGS = -I $(top_srcdir)/include -I $(top_srcdir) -isystem $(top_srcdir)/include/system
3 # May be used by toolexeclibdir.
4 gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
6 DEFS = -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS @RPC_DEFS@ @AS_SYM_ASSIGN_DEFS@
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++14
10 AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
11 if LIBBACKTRACE_SUPPORTED
12 AM_CXXFLAGS += -DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_DEMANGLE \
13 -I $(top_srcdir)/../libbacktrace \
14 -I $(top_builddir)/libbacktrace \
15 -I $(top_srcdir)/../include \
16 -include $(top_srcdir)/libbacktrace/backtrace-rename.h
18 AM_CCASFLAGS = $(EXTRA_ASFLAGS)
19 ACLOCAL_AMFLAGS = -I m4
20 sanitizer_platform_limits_freebsd.lo: AM_CXXFLAGS += -DUSE_SYSTEM_MD5
22 noinst_LTLIBRARIES = libsanitizer_common.la
24 sanitizer_common_files = \
26 sanitizer_allocator.cpp \
27 sanitizer_allocator_checks.cpp \
28 sanitizer_allocator_report.cpp \
29 sanitizer_common.cpp \
30 sanitizer_common_libcdep.cpp \
31 sanitizer_coverage_libcdep_new.cpp \
32 sanitizer_deadlock_detector1.cpp \
33 sanitizer_deadlock_detector2.cpp \
38 sanitizer_flag_parser.cpp \
40 sanitizer_libignore.cpp \
42 sanitizer_linux_libcdep.cpp \
43 sanitizer_linux_s390.cpp \
45 sanitizer_mac_libcdep.cpp \
47 sanitizer_netbsd.cpp \
48 sanitizer_platform_limits_freebsd.cpp \
49 sanitizer_platform_limits_linux.cpp \
50 sanitizer_platform_limits_openbsd.cpp \
51 sanitizer_platform_limits_posix.cpp \
52 sanitizer_platform_limits_solaris.cpp \
54 sanitizer_posix_libcdep.cpp \
55 sanitizer_printf.cpp \
56 sanitizer_procmaps_bsd.cpp \
57 sanitizer_procmaps_common.cpp \
58 sanitizer_procmaps_linux.cpp \
59 sanitizer_procmaps_mac.cpp \
60 sanitizer_procmaps_solaris.cpp \
62 sanitizer_solaris.cpp \
63 sanitizer_stack_store.cpp \
64 sanitizer_stackdepot.cpp \
65 sanitizer_stacktrace.cpp \
66 sanitizer_stacktrace_libcdep.cpp \
67 sanitizer_stacktrace_sparc.cpp \
68 sanitizer_symbolizer_mac.cpp \
69 sanitizer_symbolizer_report.cpp \
70 sanitizer_stacktrace_printer.cpp \
71 sanitizer_stoptheworld_linux_libcdep.cpp \
72 sanitizer_stoptheworld_mac.cpp \
73 sanitizer_suppressions.cpp \
74 sanitizer_symbolizer.cpp \
75 sanitizer_symbolizer_libbacktrace.cpp \
76 sanitizer_symbolizer_libcdep.cpp \
77 sanitizer_symbolizer_posix_libcdep.cpp \
78 sanitizer_symbolizer_win.cpp \
79 sanitizer_termination.cpp \
80 sanitizer_thread_arg_retval.cpp \
81 sanitizer_thread_registry.cpp \
82 sanitizer_tls_get_addr.cpp \
83 sanitizer_unwind_linux_libcdep.cpp \
84 sanitizer_unwind_win.cpp \
88 libsanitizer_common_la_SOURCES = $(sanitizer_common_files)
89 libsanitizer_common_la_LIBADD = $(SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS)
90 libsanitizer_common_la_DEPENDENCIES = $(SANITIZER_COMMON_TARGET_DEPENDENT_OBJECTS)
92 # Work around what appears to be a GNU make bug handling MAKEFLAGS
93 # values defined in terms of make variables, as is the case for CC and
94 # friends when we are called from the top level Makefile.
96 "AR_FLAGS=$(AR_FLAGS)" \
97 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
99 "CXXFLAGS=$(CXXFLAGS)" \
100 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
101 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
102 "INSTALL=$(INSTALL)" \
103 "INSTALL_DATA=$(INSTALL_DATA)" \
104 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
105 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
106 "JC1FLAGS=$(JC1FLAGS)" \
107 "LDFLAGS=$(LDFLAGS)" \
108 "LIBCFLAGS=$(LIBCFLAGS)" \
109 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
111 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
112 "PICFLAG=$(PICFLAG)" \
113 "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
115 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
116 "exec_prefix=$(exec_prefix)" \
117 "infodir=$(infodir)" \
120 "includedir=$(includedir)" \
124 "LIBCFLAGS=$(LIBCFLAGS)" \
126 "PICFLAG=$(PICFLAG)" \
132 ## ################################################################