flatten 20260225
This commit is contained in:
43
resources/packages/libunwind/prepare
Executable file
43
resources/packages/libunwind/prepare
Executable file
@@ -0,0 +1,43 @@
|
||||
OS_UNAME=`uname`
|
||||
if [[ "$OS_UNAME" != 'Linux' ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
set -x
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
mkdir -p sdk/include
|
||||
mkdir -p sdk/lib
|
||||
|
||||
LIB=libunwind
|
||||
|
||||
mkdir $LIB
|
||||
pushd $LIB
|
||||
|
||||
git clone https://github.com/libunwind/libunwind --branch=v1.8.1 --depth 1
|
||||
|
||||
pushd libunwind
|
||||
|
||||
autoreconf -i
|
||||
./configure --prefix=`pwd`/install --enable-static
|
||||
make install
|
||||
|
||||
popd
|
||||
|
||||
popd
|
||||
|
||||
pushd sdk/include
|
||||
rm libunwind
|
||||
ln -fs ../../$LIB/libunwind/install/include libunwind
|
||||
popd
|
||||
|
||||
pushd sdk/lib
|
||||
for dir in */; do
|
||||
pushd $dir
|
||||
ln -s ../../../$LIB/libunwind/install/lib/*.a ./
|
||||
popd
|
||||
done
|
||||
popd
|
||||
|
||||
ls -lha sdk/lib/*/libunwind*
|
||||
ls -lha sdk/include/libunwind
|
||||
Reference in New Issue
Block a user