[PATCH c++/86881] -Wshadow-local-compatible ICE
[official-gcc.git] / libsanitizer / asan / Makefile.am
blobf105b0357964ca85d9dd48653e13ef5c5b6cbef9
1 AM_CPPFLAGS = -I $(top_srcdir)/include -I $(top_srcdir)
2  
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 -DASAN_HAS_EXCEPTIONS=1 -DASAN_NEEDS_SEGV=1 -DCAN_SANITIZE_UB=0
7 if USING_MAC_INTERPOSE
8 DEFS += -DMAC_INTERPOSE_FUNCTIONS -DMISSING_BLOCKS_SUPPORT
9 endif
10 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 -fno-ipa-icf
11 AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
12 AM_CXXFLAGS += -std=gnu++11
13 AM_CXXFLAGS += $(EXTRA_CXXFLAGS)
14 ACLOCAL_AMFLAGS = -I $(top_srcdir) -I $(top_srcdir)/config
16 toolexeclib_LTLIBRARIES = libasan.la
17 nodist_toolexeclib_HEADERS = libasan_preinit.o
19 asan_files = \
20         asan_activation.cc \
21         asan_allocator.cc \
22         asan_debugging.cc \
23         asan_descriptions.cc \
24         asan_errors.cc \
25         asan_fake_stack.cc \
26         asan_flags.cc \
27         asan_globals.cc \
28         asan_interceptors.cc \
29         asan_interceptors_memintrinsics.cc \
30         asan_linux.cc \
31         asan_mac.cc \
32         asan_malloc_linux.cc \
33         asan_malloc_mac.cc \
34         asan_malloc_win.cc \
35         asan_memory_profile.cc \
36         asan_new_delete.cc \
37         asan_poisoning.cc \
38         asan_posix.cc \
39         asan_report.cc \
40         asan_rtl.cc \
41         asan_shadow_setup.cc \
42         asan_stack.cc \
43         asan_stats.cc \
44         asan_suppressions.cc \
45         asan_thread.cc \
46         asan_win.cc \
47         asan_win_dll_thunk.cc \
48         asan_win_dynamic_runtime_thunk.cc
50 libasan_la_SOURCES = $(asan_files)
51 libasan_la_LIBADD = $(top_builddir)/sanitizer_common/libsanitizer_common.la $(top_builddir)/lsan/libsanitizer_lsan.la
52 if !USING_MAC_INTERPOSE
53 libasan_la_LIBADD += $(top_builddir)/interception/libinterception.la
54 endif
55 if LIBBACKTRACE_SUPPORTED
56 libasan_la_LIBADD += $(top_builddir)/libbacktrace/libsanitizer_libbacktrace.la
57 endif
58 libasan_la_LIBADD += $(LIBSTDCXX_RAW_CXX_LDFLAGS)
60 libasan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(link_libasan)
62 libasan_preinit.o: asan_preinit.o
63         cp $< $@
65 # Work around what appears to be a GNU make bug handling MAKEFLAGS
66 # values defined in terms of make variables, as is the case for CC and
67 # friends when we are called from the top level Makefile.
68 AM_MAKEFLAGS = \
69         "AR_FLAGS=$(AR_FLAGS)" \
70         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
71         "CFLAGS=$(CFLAGS)" \
72         "CXXFLAGS=$(CXXFLAGS)" \
73         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
74         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
75         "INSTALL=$(INSTALL)" \
76         "INSTALL_DATA=$(INSTALL_DATA)" \
77         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
78         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
79         "JC1FLAGS=$(JC1FLAGS)" \
80         "LDFLAGS=$(LDFLAGS)" \
81         "LIBCFLAGS=$(LIBCFLAGS)" \
82         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
83         "MAKE=$(MAKE)" \
84         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
85         "PICFLAG=$(PICFLAG)" \
86         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
87         "SHELL=$(SHELL)" \
88         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
89         "exec_prefix=$(exec_prefix)" \
90         "infodir=$(infodir)" \
91         "libdir=$(libdir)" \
92         "prefix=$(prefix)" \
93         "includedir=$(includedir)" \
94         "AR=$(AR)" \
95         "AS=$(AS)" \
96         "LD=$(LD)" \
97         "LIBCFLAGS=$(LIBCFLAGS)" \
98         "NM=$(NM)" \
99         "PICFLAG=$(PICFLAG)" \
100         "RANLIB=$(RANLIB)" \
101         "DESTDIR=$(DESTDIR)"
103 MAKEOVERRIDES=
105 ## ################################################################