re PR sanitizer/59106 (Failure to link against static libasan)
2013-11-28 Jakub Jelinek <jakub@redhat.com> Yury Gribov <y.gribov@samsung.com> PR sanitizer/59106 * ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that don't need it. * ubsan/Makefile.in: Regenerated. Co-Authored-By: Yury Gribov <y.gribov@samsung.com> From-SVN: r205482
This commit is contained in:
parent
53a5717ecd
commit
049558ed48
3 changed files with 16 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
2013-11-28 Jakub Jelinek <jakub@redhat.com>
|
||||
Yury Gribov <y.gribov@samsung.com>
|
||||
|
||||
PR sanitizer/59106
|
||||
* ubsan/Makefile.am (AM_CXXFLAGS): Disable -frtti for files that
|
||||
don't need it.
|
||||
* ubsan/Makefile.in: Regenerated.
|
||||
|
||||
2013-11-22 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR sanitizer/59061
|
||||
|
|
|
@ -4,7 +4,7 @@ AM_CPPFLAGS = -I $(top_srcdir) -I $(top_srcdir)/include
|
|||
gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
|
||||
|
||||
DEFS = -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
|
||||
AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros
|
||||
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
|
||||
AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
|
@ -25,6 +25,9 @@ endif
|
|||
libubsan_la_LIBADD += $(LIBSTDCXX_RAW_CXX_LDFLAGS)
|
||||
libubsan_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` -lpthread -ldl
|
||||
|
||||
# Use special rules for files that require RTTI support.
|
||||
ubsan_handlers_cxx.% ubsan_type_hash.% : AM_CXXFLAGS += -frtti
|
||||
|
||||
# Work around what appears to be a GNU make bug handling MAKEFLAGS
|
||||
# values defined in terms of make variables, as is the case for CC and
|
||||
# friends when we are called from the top level Makefile.
|
||||
|
|
|
@ -240,7 +240,7 @@ AM_CPPFLAGS = -I $(top_srcdir) -I $(top_srcdir)/include
|
|||
# May be used by toolexeclibdir.
|
||||
gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
|
||||
AM_CXXFLAGS = -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic \
|
||||
-Wno-long-long -fPIC -fno-builtin -fno-exceptions \
|
||||
-Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti \
|
||||
-fomit-frame-pointer -funwind-tables -fvisibility=hidden \
|
||||
-Wno-variadic-macros $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
@ -575,6 +575,9 @@ uninstall-am: uninstall-toolexeclibLTLIBRARIES
|
|||
tags uninstall uninstall-am uninstall-toolexeclibLTLIBRARIES
|
||||
|
||||
|
||||
# Use special rules for files that require RTTI support.
|
||||
ubsan_handlers_cxx.% ubsan_type_hash.% : AM_CXXFLAGS += -frtti
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
||||
|
|
Loading…
Add table
Reference in a new issue