aboutsummaryrefslogtreecommitdiff
path: root/ports/ffmpeg/create-lib-libraries.patch
blob: ccad5ff8c8eb28b50242a99185f9c464b7c08b5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 5f7c72d6c93fb1f4a730e2315fff6e5eb9bb95c8 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <anonymous.maarten@gmail.com>
Date: Wed, 27 Sep 2017 15:50:40 +0200
Subject: [PATCH] configure: create .lib static libraries using MSVC compiler
 (instead of .a)

---
 configure | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure b/configure
index ba38a73906..0a3f308323 100755
--- a/configure
+++ b/configure
@@ -4890,15 +4890,17 @@
         ;;
     win32|win64)
         disable symver
-        if enabled shared; then
+#        if enabled shared; then
             # Link to the import library instead of the normal static library
             # for shared libs.
             LD_LIB='%.lib'
             # Cannot build both shared and static libs with MSVC or icl.
-            disable static
-        fi
+#            disable static
+#        fi
         enabled x86_32 && check_ldflags -LARGEADDRESSAWARE
         shlibdir_default="$bindir_default"
+        LIBPREF=""
+        LIBSUF=".lib"
         SLIBPREF=""
         SLIBSUF=".dll"
         SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME)-$(LIBVERSION)$(SLIBSUF)'
-- 
2.14.1.windows.1