get current toolchain from gcc output
This commit is contained in:
parent
67b78f0c25
commit
b610722fac
|
@ -6,8 +6,8 @@ if [[ ! -x melonDS.exe ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
|
tool=$(gcc -v 2>&1 | head -1 | awk '{print $1}')
|
||||||
for lib in $(ldd melonDS.exe | grep mingw | sed "s/.*=> //" | sed "s/(.*)//"); do
|
for lib in $(ldd melonDS.exe | grep $tool | sed "s/.*=> //" | sed "s/(.*)//"); do
|
||||||
cp "${lib}" dist
|
cp "${lib}" dist
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue