diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-04-17 14:25:25 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-04-17 14:25:25 +0200 |
commit | 4f148bbc73f5aeb52aec38785263c26811be308d (patch) | |
tree | 47cfcc6b2ff22d34b1cb69c133eaa143f2c4117d /libiberty/configure.ac | |
parent | ffe7f7a75f2e5709f2678d01bf1a92890304c346 (diff) | |
download | gcc-4f148bbc73f5aeb52aec38785263c26811be308d.zip gcc-4f148bbc73f5aeb52aec38785263c26811be308d.tar.gz gcc-4f148bbc73f5aeb52aec38785263c26811be308d.tar.bz2 |
re PR sanitizer/56781 (boostrap-asan failure: fixincl fails to link (missing -lasan))
PR sanitizer/56781
lto-plugin/
* Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
(liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
over ../libiberty/pic/libiberty.a if the former exists.
* Makefile.in: Regenerated.
libiberty/
* maint-tool: Also emit rule for noasan/ subdirectory.
* configure.ac (NOASANFLAG): Set and substitute.
* Makefile.in: Regenerated.
(NOASANFLAG): Set.
(all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic
subdir.
(stamp-noasandir): New goal.
* configure: Regenerated.
From-SVN: r209476
Diffstat (limited to 'libiberty/configure.ac')
-rw-r--r-- | libiberty/configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libiberty/configure.ac b/libiberty/configure.ac index d6180bc..3380819 100644 --- a/libiberty/configure.ac +++ b/libiberty/configure.ac @@ -236,6 +236,12 @@ if [[ "${shared}" != "yes" ]]; then fi AC_SUBST(PICFLAG) +NOASANFLAG= +case " ${CFLAGS} " in + *\ -fsanitize=address\ *) NOASANFLAG=-fno-sanitize=address ;; +esac +AC_SUBST(NOASANFLAG) + echo "# Warning: this fragment is automatically generated" > temp-frag if [[ -n "${frag}" ]] && [[ -f "${frag}" ]]; then |