darwin: fix also .so names in darwin

Darwin does not actually require `*.dylib` extension, and some ports of
unix software may still simply compile and install these as `*.so` files.

Include `*.so` in the find in this case.

Co-authored-by: Artturi <Artturin@artturin.com>
Co-authored-by: toonn <toonn@toonn.io>
This commit is contained in:
Jari Vetoniemi 2022-11-24 03:52:33 +09:00 committed by Weijia Wang
parent bc99b5e50c
commit 0c73f39dab

View file

@ -36,5 +36,5 @@ fixDarwinDylibNames() {
fixDarwinDylibNamesIn() {
local dir="$1"
fixDarwinDylibNames $(find "$dir" -name "*.dylib")
fixDarwinDylibNames $(find "$dir" -name "*.dylib" -o -name "*.so" -o -name "*.so.*")
}