From 80912f2f09f4c06b2f720ff243d7b9b6795093f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Chigot?= Date: Thu, 1 Sep 2022 14:47:16 +0200 Subject: Makefile: enable target overridings. (#661) This patch allows target to provide extra files enabling the override of Makefile rules. This patch is not needed for libffi itself but only for GCC on AIX. The t-aix file which is here empty will be replaced in GCC repository. We cannot include GCC version directly here because it has no sense for a standalone libffi. Co-authored-by: Clement --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 7a17a23..915b820 100644 --- a/configure.ac +++ b/configure.ac @@ -431,6 +431,16 @@ else fi AC_SUBST(toolexeclibdir) +# Conditionalize the makefile for this target machine. +tmake_file_= +for f in ${tmake_file}; do + if test -f ${srcdir}/src/$TARGETDIR/$f; then + tmake_file_="${tmake_file_} \$(srcdir)/src/$TARGETDIR/$f" + fi +done +tmake_file="${tmake_file_}" +AC_SUBST(tmake_file) + # Check linker support. LIBFFI_ENABLE_SYMVERS -- cgit v1.2.1