* gcc.dg/attr-alloc_size-11.c: UnXFAIL for visium-*-*.
[official-gcc.git] / libsanitizer / lsan / Makefile.am
blob294342b1926994edde41030b175c2261c53103ff
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 
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
13 if LSAN_SUPPORTED
14 toolexeclib_LTLIBRARIES = liblsan.la
15 endif
17 sanitizer_lsan_files = \
18         lsan_common.cc \
19         lsan_common_linux.cc
21 lsan_files = \
22         $(sanitizer_lsan_files) \
23         lsan.cc \
24         lsan_allocator.cc \
25         lsan_interceptors.cc \
26         lsan_preinit.cc \
27         lsan_thread.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
35 endif
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.
42 AM_MAKEFLAGS = \
43         "AR_FLAGS=$(AR_FLAGS)" \
44         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
45         "CFLAGS=$(CFLAGS)" \
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)" \
57         "MAKE=$(MAKE)" \
58         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
59         "PICFLAG=$(PICFLAG)" \
60         "PICFLAG_FOR_TARGET=$(PICFLAG_FOR_TARGET)" \
61         "SHELL=$(SHELL)" \
62         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
63         "exec_prefix=$(exec_prefix)" \
64         "infodir=$(infodir)" \
65         "libdir=$(libdir)" \
66         "prefix=$(prefix)" \
67         "includedir=$(includedir)" \
68         "AR=$(AR)" \
69         "AS=$(AS)" \
70         "LD=$(LD)" \
71         "LIBCFLAGS=$(LIBCFLAGS)" \
72         "NM=$(NM)" \
73         "PICFLAG=$(PICFLAG)" \
74         "RANLIB=$(RANLIB)" \
75         "DESTDIR=$(DESTDIR)"
77 MAKEOVERRIDES=
79 ## ################################################################