aboutsummaryrefslogtreecommitdiff
path: root/libgcc/Makefile.in
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2016-09-21 12:53:20 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2016-09-21 12:53:20 +0000
commit7e02fd1b7b89245001d3c582c49432c370493d3f (patch)
tree48177a7e235918f42f7bc4915708998a2063d7de /libgcc/Makefile.in
parent26e7820fcc2ed5a4792b2b12ef94b7ee5341f703 (diff)
downloadgcc-7e02fd1b7b89245001d3c582c49432c370493d3f.zip
gcc-7e02fd1b7b89245001d3c582c49432c370493d3f.tar.gz
gcc-7e02fd1b7b89245001d3c582c49432c370493d3f.tar.bz2
configure.ac: Do not create links, only substitute the filenames.
* configure.ac: Do not create links, only substitute the filenames. * configure: Regenerate. * Makefile.in: Assign the substitution results to variables. (LIBGCC_LINKS): Define. (enable-execute-stack.c): New rule. (unwind.h): Likewise. (md-unwind-support.h): Likewise. (sfp-machine.h): Likewise. (gthr-default.h): Likewise. Add $(LIBGCC_LINKS) to the prerequisites of all object files and unwind.h as prerequisite of install-unwind_h-forbuild. From-SVN: r240312
Diffstat (limited to 'libgcc/Makefile.in')
-rw-r--r--libgcc/Makefile.in24
1 files changed, 22 insertions, 2 deletions
diff --git a/libgcc/Makefile.in b/libgcc/Makefile.in
index 53e3ea2..ff3c77f 100644
--- a/libgcc/Makefile.in
+++ b/libgcc/Makefile.in
@@ -43,6 +43,11 @@ enable_vtable_verify = @enable_vtable_verify@
enable_decimal_float = @enable_decimal_float@
fixed_point = @fixed_point@
with_aix_soname = @with_aix_soname@
+enable_execute_stack = @enable_execute_stack@
+unwind_header = @unwind_header@
+md_unwind_header = @md_unwind_header@
+sfp_machine_header = @sfp_machine_header@
+thread_header = @thread_header@
host_noncanonical = @host_noncanonical@
real_host_noncanonical = @real_host_noncanonical@
@@ -345,6 +350,21 @@ SHLIBUNWIND_INSTALL =
tmake_file = @tmake_file@
include $(srcdir)/empty.mk $(tmake_file)
+# Create links to files specified in config.host.
+LIBGCC_LINKS = enable-execute-stack.c unwind.h md-unwind-support.h \
+ sfp-machine.h gthr-default.h
+
+enable-execute-stack.c: $(srcdir)/$(enable_execute_stack)
+ -$(LN_S) $< $@
+unwind.h: $(srcdir)/$(unwind_header)
+ -$(LN_S) $< $@
+md-unwind-support.h: $(srcdir)/config/$(md_unwind_header)
+ -$(LN_S) $< $@
+sfp-machine.h: $(srcdir)/config/$(sfp_machine_header)
+ -$(LN_S) $< $@
+gthr-default.h: $(srcdir)/$(thread_header)
+ -$(LN_S) $< $@
+
# Collect target defines and headers from config.host.
libgcc_tm_defines = @tm_defines@
libgcc_tm_file = @tm_file@
@@ -1069,10 +1089,10 @@ all: $(extra-parts)
$(libgcc-objects) $(libgcc-s-objects) $(libgcc-eh-objects) \
$(libgcov-objects) \
$(libunwind-objects) $(libunwind-s-objects) \
- $(EXTRA_PARTS): libgcc_tm.h
+ $(EXTRA_PARTS): $(LIBGCC_LINKS) libgcc_tm.h
# Copy unwind.h to the place where gcc will look for it at build-time
-install-unwind_h-forbuild:
+install-unwind_h-forbuild: unwind.h
dest=$(gcc_objdir)/include/tmp$$$$-unwind.h; \
cp unwind.h $$dest; \
chmod a+r $$dest; \