]> gcc.gnu.org Git - gcc.git/blame - lto-plugin/Makefile.am
re PR sanitizer/56781 (boostrap-asan failure: fixincl fails to link (missing -lasan))
[gcc.git] / lto-plugin / Makefile.am
CommitLineData
d7f09764
DN
1# Makefile.am is used by automake 1.11 to generate Makefile.in.
2
3ACLOCAL_AMFLAGS = -I .. -I ../config
c164615b 4AUTOMAKE_OPTIONS = no-dependencies
d7f09764
DN
5
6gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
7target_noncanonical := @target_noncanonical@
8libexecsubdir := $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
9
48215350 10AM_CPPFLAGS = -I$(top_srcdir)/../include $(DEFS)
f3016c47 11AM_CFLAGS = @ac_lto_plugin_warn_cflags@
5523efdf 12AM_LDFLAGS = @ac_lto_plugin_ldflags@
5b64bab9 13AM_LIBTOOLFLAGS = --tag=disable-static
d7f09764
DN
14
15libexecsub_LTLIBRARIES = liblto_plugin.la
3917813c 16gcc_build_dir = ../$(host_subdir)/gcc
f3d533d3 17in_gcc_libs = $(foreach lib, $(libexecsub_LTLIBRARIES), $(gcc_build_dir)/$(lib))
d7f09764 18
f43c3935
KT
19# Can be removed when libiberty becomes a normal convenience library
20Wc=-Wc,
ffe7f7a7 21LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
f43c3935 22
48215350 23liblto_plugin_la_SOURCES = lto-plugin.c
dd8587d6 24liblto_plugin_la_LIBADD = \
f43c3935 25 $(if $(wildcard ../libiberty/pic/libiberty.a),$(Wc)../libiberty/pic/libiberty.a,)
7de6ba7a 26# Note that we intentionally override the bindir supplied by ACX_LT_HOST_FLAGS
5523efdf
RO
27liblto_plugin_la_LDFLAGS = $(AM_LDFLAGS) \
28 $(lt_host_flags) -module -bindir $(libexecsubdir) \
be3ea0c8 29 $(if $(wildcard ../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a)
f43c3935
KT
30liblto_plugin_la_DEPENDENCIES = $(if $(wildcard \
31 ../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,)
ffe7f7a7
JJ
32liblto_plugin_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
33 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
34 $(liblto_plugin_la_LDFLAGS) $(LTLDFLAGS) -o $@
553fc582 35
3917813c 36all-local: $(in_gcc_libs)
553fc582 37
f3d533d3
AO
38$(in_gcc_libs) : $(gcc_build_dir)/%: %
39 @if test "X`dlname=; . ./$*; echo dlname:$$dlname`" = "Xdlname:"; then \
40 echo WARNING: $* is static, not copying to $@ >&2 ; \
41 else \
42 $(mkinstalldirs) $(gcc_build_dir) && \
43 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $* `pwd`/$@ ; \
44 fi
This page took 0.422769 seconds and 5 git commands to generate.