Files
MINGW-packages/mingw-w64-gdb/gdb-7.12-dynamic-libs.patch
2017-03-07 20:37:05 +03:00

37 lines
1.1 KiB
Diff

From 04a27a15b268e07c76578c074c3822477ceabc50 Mon Sep 17 00:00:00 2001
From: Orgad Shaneh <orgads@gmail.com>
Date: Tue, 7 Mar 2017 19:13:41 +0200
Subject: [PATCH] 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 a5f4fc5aa7..f5a9766c39 100755
--- a/configure
+++ b/configure
@@ -5902,7 +5902,7 @@ else
# if supported. But if the user explicitly specified the libraries to use,
# trust that they are doing what they want.
if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
- stage1_ldflags="-static-libstdc++ -static-libgcc"
+ stage1_ldflags=""
fi
fi
@@ -5938,7 +5938,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.12.0.windows.1