2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-24 16:30:04 -07:00
repo/core/e2fsprogs/build

29 lines
727 B
Plaintext
Raw Normal View History

#!/bin/sh -e
export CFLAGS="$CFLAGS -static"
# Build using private libuuid and libblkid libraries as
# KISS uses util-linux from busybox.
./configure \
--enable-symlink-install \
--enable-libuuid \
--enable-libblkid \
2019-06-21 00:37:23 -06:00
--disable-uuidd \
2019-06-21 00:26:07 -06:00
--disable-elf-shlibs \
--disable-fsck \
--disable-nls
2019-06-21 00:26:07 -06:00
# MKDIR_P fixes an install issue on musl/busybox.
make
2019-06-21 00:26:07 -06:00
make MKDIR_P="install -d" DESTDIR="$1" install install-libs
# Make static libraries writable (for strip).
chmod -v u+w "$1/usr/lib/libcom_err.a" \
"$1/usr/lib/libe2p.a" \
"$1/usr/lib/libext2fs.a" \
2019-06-21 00:37:23 -06:00
"$1/usr/lib/libss.a" \
"$1/usr/lib/libblkid.a"
# Remove all info files.
rm -rf "$1/usr/share/info"