diff --git a/debian/scripts/sonames2elf b/debian/scripts/sonames2elf index cdf6c54..4d1b3b1 100755 --- a/debian/scripts/sonames2elf +++ b/debian/scripts/sonames2elf @@ -29,7 +29,10 @@ then fi tmpdir=$(mktemp -d -t sonames2elf.XXXXXX) cd "$tmpdir" -printf 'INPUT(%s)\n' "$@" > libeverything.so +# Use the unversioned solink because the soname might be not found. +# solink always points to the default soname, which is what wine uses. +SOLINKS="$(echo $@ | sed "s|\([[:alnum:]]*\.so\)[\.[0-9]*]*|\1|g")" +printf 'INPUT(%s)\n' "$SOLINKS" > libeverything.so gcc -shared -nostdlib -Wl,--no-as-needed -L. -leverything -o elf cat elf rm -rf "$tmpdir"