From a1130f37712c03957c9b0adf316cd006fa92a60b Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Mon, 12 Sep 2022 08:53:06 -0400 Subject: Add static trampoline support for Cygwin --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 8edb7b6..75cc455 100644 --- a/configure.ac +++ b/configure.ac @@ -392,6 +392,12 @@ AC_ARG_ENABLE(exec-static-tramp, if test "$enable_exec_static_tramp" != no; then case "$target" in *-cygwin*) + # Only define static trampolines if we are using the cygwin runtime. + # Will this need to be changed for mingw? + if test "x$GCC" = "xyes"; then + AC_DEFINE(FFI_EXEC_STATIC_TRAMP, 1, + [Define this if you want statically defined trampolines]) + fi ;; *arm*-*-linux-* | aarch64*-*-linux-* | i*86-*-linux-* | x86_64-*-linux-* | loongarch*-*-linux-*) AC_DEFINE(FFI_EXEC_STATIC_TRAMP, 1, -- cgit v1.2.1