MINGW-packages/mingw-w64-gdb/0003-configure-Disable-static-linking-with-standard-libs.patch
2021-10-25 10:14:49 +03:00

37 lines
1.0 KiB
Diff

From 5735b840b95b89e516f39f5e265d1e3fe5907188 Mon Sep 17 00:00:00 2001
From: Orgad Shaneh <orgads@gmail.com>
Date: Tue, 7 Mar 2017 19:13:41 +0200
Subject: [PATCH 3/5] configure: Disable static linking with standard libs
Linking statically causes spurious crashes on exception handling
with mingw32.
---
configure | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 3dd206525a7..d8d6fdc1f7e 100755
--- a/configure
+++ b/configure
@@ -6149,7 +6149,7 @@ else
# trust that they are doing what they want.
if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
-a "$have_static_libs" = yes; then
- stage1_ldflags="-static-libstdc++ -static-libgcc"
+ stage1_ldflags=""
fi
fi
@@ -6185,7 +6185,7 @@ else
# statically. But if the user explicitly specified the libraries to
# use, trust that they are doing what they want.
if test "$poststage1_libs" = ""; then
- poststage1_ldflags="-static-libstdc++ -static-libgcc"
+ poststage1_ldflags=""
fi
fi
--
2.33.1.windows.1