2012-11-22 19:38:39 +01:00
|
|
|
# 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
|
2016-08-04 22:27:13 +02:00
|
|
|
version=2.24
|
2017-06-20 15:26:36 +02:00
|
|
|
release=6
|
2017-03-02 14:25:08 +01:00
|
|
|
source=(http://ftpmirror.gnu.org/gnu/glibc/glibc-2.24.tar.xz \
|
2017-02-07 14:24:38 +01:00
|
|
|
http://crux.nu/files/distfiles/kernel-headers-4.9.5.tar.xz \
|
2017-06-20 15:26:36 +02:00
|
|
|
glibc-2.24-updates.patch lib32.conf)
|
2012-11-22 19:38:39 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
mkdir build
|
|
|
|
cd build
|
2015-06-26 15:27:41 +02:00
|
|
|
|
|
|
|
export libc_cv_slibdir=/lib32
|
|
|
|
export CC="${CC:-gcc} -m32"
|
2016-07-01 20:09:00 +02:00
|
|
|
export CFLAGS="$CFLAGS -Wno-error=parentheses"
|
2015-06-26 15:27:41 +02:00
|
|
|
|
2017-06-20 15:26:36 +02:00
|
|
|
patch -p1 -d $SRC/glibc-${version:0:4} -i $SRC/glibc-2.24-updates.patch
|
|
|
|
|
2016-07-05 20:41:15 +02:00
|
|
|
../glibc-${version:0:4}/configure --prefix=/usr \
|
2012-11-22 19:38:39 +01:00
|
|
|
--libdir=/usr/lib32 \
|
|
|
|
--libexecdir=/usr/lib32 \
|
2017-02-07 14:24:38 +01:00
|
|
|
--with-headers=$SRC/kernel-headers-4.9.5/include \
|
2015-06-26 15:27:41 +02:00
|
|
|
--enable-kernel=3.12 \
|
2012-11-22 19:38:39 +01:00
|
|
|
--enable-add-ons \
|
|
|
|
--disable-profile \
|
|
|
|
--without-gd \
|
|
|
|
--enable-obsolete-rpc \
|
2015-06-26 15:27:41 +02:00
|
|
|
--enable-multi-arch \
|
|
|
|
i686-pc-linux-gnu
|
|
|
|
|
2012-11-22 19:38:39 +01:00
|
|
|
make
|
|
|
|
#make check
|
|
|
|
make install_root=$PKG install
|
|
|
|
|
2015-07-27 19:50:38 +02:00
|
|
|
rm -r $PKG/usr/{bin,sbin,share} $PKG/{etc,sbin} $PKG/var
|
2012-11-22 19:38:39 +01:00
|
|
|
|
2015-07-27 19:50:38 +02:00
|
|
|
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
|
2012-11-22 19:38:39 +01:00
|
|
|
|
|
|
|
install -D $SRC/lib32.conf $PKG/etc/ld.so.conf.d/lib32.conf
|
2015-07-27 19:50:38 +02:00
|
|
|
|
|
|
|
install -d $PKG/lib
|
|
|
|
ln -s /lib32/ld-linux.so.2 $PKG/lib/ld-linux.so.2
|
2012-11-22 19:38:39 +01:00
|
|
|
}
|