forked from ports/compat-32
22 lines
679 B
Plaintext
22 lines
679 B
Plaintext
|
# Description: Portable and efficient API to determine the call-chain of a program
|
||
|
# URL: https://savannah.nongnu.org/projects/libunwind
|
||
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
||
|
# Depends on: libunwind
|
||
|
|
||
|
name=libunwind-32
|
||
|
version=1.5.0
|
||
|
release=1
|
||
|
source=(https://download.savannah.gnu.org/releases/libunwind/libunwind-$version.tar.gz
|
||
|
libunwind-1.5.0-x32.patch)
|
||
|
|
||
|
build() {
|
||
|
cd libunwind-$version
|
||
|
patch -p1 -i $SRC/libunwind-1.5.0-x32.patch
|
||
|
./configure --prefix=/usr --libdir=/usr/lib32 --host=i686-pc-linux-gnu
|
||
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||
|
make
|
||
|
make DESTDIR=$PKG install
|
||
|
|
||
|
find $PKG/usr/include -type f ! -name libunwind-x86.h -delete
|
||
|
}
|