aboutsummaryrefslogtreecommitdiffstats
path: root/compat/windows
diff options
context:
space:
mode:
authorCyber Sinh <cyber.sinh@free.fr>2017-12-29 02:59:08 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-04-24 01:41:13 +0200
commit499b46fd0a891b6518f4e421aa2582dc70f700d9 (patch)
treea86eb443667df097cd3c5967ebb34f618ae2e5e3 /compat/windows
parentf9a061a31c3d2d81b3ec1e1b9b37187a358cdd9e (diff)
downloadffmpeg-499b46fd0a891b6518f4e421aa2582dc70f700d9.tar.gz
compat/windows/makedef: Allow building shared libs with MSVC under WSL
A similar patch was posted by Gilles Khouzam in his blog.
Diffstat (limited to 'compat/windows')
-rwxr-xr-xcompat/windows/makedef4
1 files changed, 2 insertions, 2 deletions
diff --git a/compat/windows/makedef b/compat/windows/makedef
index 7258b94a92..add8222d13 100755
--- a/compat/windows/makedef
+++ b/compat/windows/makedef
@@ -48,7 +48,7 @@ trap 'rm -f -- $libname' EXIT
if [ -n "$AR" ]; then
$AR rcs ${libname} $@ >/dev/null
else
- lib -out:${libname} $@ >/dev/null
+ lib.exe -out:${libname} $@ >/dev/null
fi
if [ $? != 0 ]; then
echo "Could not create temporary library." >&2
@@ -108,7 +108,7 @@ if [ -n "$NM" ]; then
cut -d' ' -f3 |
sed -e "s/^${prefix}//")
else
- dump=$(dumpbin -linkermember:1 ${libname} |
+ dump=$(dumpbin.exe -linkermember:1 ${libname} |
sed -e '/public symbols/,$!d' -e '/^ \{1,\}Summary/,$d' -e "s/ \{1,\}${prefix}/ /" -e 's/ \{1,\}/ /g' |
tail -n +2 |
cut -d' ' -f3)