2019-06-20 23:55:39 -06:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2019-06-21 00:32:30 -06:00
|
|
|
export CFLAGS="$CFLAGS -static"
|
|
|
|
|
2019-06-20 23:55:39 -06:00
|
|
|
./configure \
|
|
|
|
--enable-symlink-install \
|
2019-06-21 00:37:23 -06:00
|
|
|
--disable-uuidd \
|
2019-06-21 00:26:07 -06:00
|
|
|
--disable-elf-shlibs \
|
2019-06-20 23:55:39 -06:00
|
|
|
--disable-fsck \
|
|
|
|
--disable-nls
|
|
|
|
|
2019-06-21 00:26:07 -06:00
|
|
|
# MKDIR_P fixes an install issue on musl/busybox.
|
2019-06-20 23:55:39 -06:00
|
|
|
make
|
2019-06-21 00:26:07 -06:00
|
|
|
make MKDIR_P="install -d" DESTDIR="$1" install install-libs
|
2019-06-20 23:55:39 -06:00
|
|
|
|
|
|
|
# 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"
|
2019-06-20 23:55:39 -06:00
|
|
|
|
|
|
|
# Remove all info files.
|
|
|
|
rm -rf "$1/usr/share/info"
|