summaryrefslogtreecommitdiffstats
path: root/binutils-2.37-cygwin-config-rpath.patch
blob: 1fe0b1b9f6637aedfa8e3e69d931f85754287d41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/config.rpath
+++ b/config.rpath
@@ -438,7 +438,14 @@
   bsdi4*)
     ;;
   cygwin* | mingw* | pw32*)
-    shrext=.dll
+    case "$TOOLCHAIN_TARGET" in
+      i686-w64-mingw32 | x86_64-w64-mingw32)
+	shrext=.dll.a
+	;;
+      *)
+	shrext=.dll
+	;;
+    esac
     ;;
   darwin* | rhapsody*)
     shrext=.dylib