aboutsummaryrefslogtreecommitdiff
path: root/lto-plugin/Makefile.am
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2014-04-17 14:23:28 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2014-04-17 14:23:28 +0200
commitffe7f7a75f2e5709f2678d01bf1a92890304c346 (patch)
tree939f1ccdf6369001e5600ee2c4b597483c98bc23 /lto-plugin/Makefile.am
parent79896351cbd1ba94a66b867694b335127ee72449 (diff)
downloadgcc-ffe7f7a75f2e5709f2678d01bf1a92890304c346.zip
gcc-ffe7f7a75f2e5709f2678d01bf1a92890304c346.tar.gz
gcc-ffe7f7a75f2e5709f2678d01bf1a92890304c346.tar.bz2
re PR sanitizer/56781 (boostrap-asan failure: fixincl fails to link (missing -lasan))
PR sanitizer/56781 * libtool-ldflags: Also prefix -static-lib*, -shared-lib* and -B* options with -Xcompiler. lto-plugin/ * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables. * Makefile.in: Regenerated. From-SVN: r209475
Diffstat (limited to 'lto-plugin/Makefile.am')
-rw-r--r--lto-plugin/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/lto-plugin/Makefile.am b/lto-plugin/Makefile.am
index e3391bc..507e027 100644
--- a/lto-plugin/Makefile.am
+++ b/lto-plugin/Makefile.am
@@ -18,6 +18,7 @@ in_gcc_libs = $(foreach lib, $(libexecsub_LTLIBRARIES), $(gcc_build_dir)/$(lib))
# Can be removed when libiberty becomes a normal convenience library
Wc=-Wc,
+LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
liblto_plugin_la_SOURCES = lto-plugin.c
liblto_plugin_la_LIBADD = \
@@ -28,6 +29,9 @@ liblto_plugin_la_LDFLAGS = $(AM_LDFLAGS) \
$(if $(wildcard ../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a)
liblto_plugin_la_DEPENDENCIES = $(if $(wildcard \
../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,)
+liblto_plugin_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(liblto_plugin_la_LDFLAGS) $(LTLDFLAGS) -o $@
all-local: $(in_gcc_libs)