git.annexia.org
/
fedora-mingw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix build of DLLs.
[fedora-mingw.git]
/
filesystem
/
mingw-find-requires.sh
diff --git
a/filesystem/mingw-find-requires.sh
b/filesystem/mingw-find-requires.sh
index
1a63fc3
..
6b9848a
100755
(executable)
--- a/
filesystem/mingw-find-requires.sh
+++ b/
filesystem/mingw-find-requires.sh
@@
-10,12
+10,19
@@
fi
[ -z "$OBJDUMP" ] && OBJDUMP=i686-pc-mingw32-objdump
[ -z "$OBJDUMP" ] && OBJDUMP=i686-pc-mingw32-objdump
+# Get the list of files.
+
filelist=`sed "s/['\"]/\\\&/g"`
filelist=`sed "s/['\"]/\\\&/g"`
-dlls=$(echo $filelist | tr [:blank:] '\n' | grep '\.dll')
+# Everything requires mingw-filesystem of at least the current version
+# and mingw-runtime.
+echo 'mingw-filesystem >= @VERSION@'
+echo 'mingw-runtime'
+
+dlls=$(echo $filelist | tr [:blank:] '\n' | grep '\.dll$')
for f in $dlls; do
for f in $dlls; do
- $OBJDUMP -p $f | grep 'DLL Name' | grep -Eo '[
[:alnum:]_
]+\.dll' |
+ $OBJDUMP -p $f | grep 'DLL Name' | grep -Eo '[
-._[:alnum:]
]+\.dll' |
tr [:upper:] [:lower:] |
sed 's/\(.*\)/mingw(\1)/'
done | sort -u
tr [:upper:] [:lower:] |
sed 's/\(.*\)/mingw(\1)/'
done | sort -u