50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
# Description: The C library used in the GNU system
|
|
# URL: http://www.gnu.org/software/libc/
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
name=glibc-32
|
|
version=2.26
|
|
release=7
|
|
source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \
|
|
http://crux.nu/files/distfiles/kernel-headers-4.14.14.tar.xz \
|
|
glibc-2.26-$release.patch lib32.conf)
|
|
|
|
build() {
|
|
mkdir build
|
|
cd build
|
|
|
|
export libc_cv_slibdir=/lib32
|
|
export CC="${CC:-gcc} -m32"
|
|
export CFLAGS="$CFLAGS -Wno-error=parentheses"
|
|
|
|
patch -p1 -d $SRC/glibc-${version:0:4} -i $SRC/glibc-2.26-$release.patch
|
|
|
|
../glibc-${version:0:4}/configure --prefix=/usr \
|
|
--libdir=/usr/lib32 \
|
|
--libexecdir=/usr/lib32 \
|
|
--with-headers=$SRC/kernel-headers-4.14.14/include \
|
|
--enable-kernel=3.12 \
|
|
--enable-add-ons \
|
|
--disable-profile \
|
|
--disable-werror \
|
|
--without-gd \
|
|
--enable-obsolete-rpc \
|
|
--enable-multi-arch \
|
|
i686-pc-linux-gnu
|
|
|
|
make
|
|
#make check
|
|
make install_root=$PKG install
|
|
|
|
rm -r $PKG/usr/{bin,sbin,share} $PKG/{etc,sbin} $PKG/var
|
|
|
|
mv $PKG/usr/include/gnu/stubs-32.h $SRC
|
|
rm -r $PKG/usr/include
|
|
install -D $SRC/stubs-32.h $PKG/usr/include/gnu/stubs-32.h
|
|
|
|
install -D $SRC/lib32.conf $PKG/etc/ld.so.conf.d/lib32.conf
|
|
|
|
install -d $PKG/lib
|
|
ln -s /lib32/ld-linux.so.2 $PKG/lib/ld-linux.so.2
|
|
}
|