core/glibc-32/Pkgfile

46 lines
1.1 KiB
Plaintext
Raw Normal View History

# 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
2015-08-06 19:07:56 +02:00
version=2.22
release=1
source=(http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz \
2015-06-26 15:27:41 +02:00
http://crux.nu/files/distfiles/kernel-headers-4.1.tar.xz \
2014-02-15 23:48:23 +01:00
lib32.conf)
build() {
mkdir build
cd build
2015-06-26 15:27:41 +02:00
export libc_cv_slibdir=/lib32
export CC="${CC:-gcc} -m32"
../glibc-$version/configure --prefix=/usr \
--libdir=/usr/lib32 \
--libexecdir=/usr/lib32 \
2015-07-27 19:50:38 +02:00
--with-headers=$SRC/kernel-headers-4.1/include \
2015-06-26 15:27:41 +02:00
--enable-kernel=3.12 \
--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
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
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
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
}