~carbslinux/repository

ref: 2356b251838cdb86fbd0c0a602f5d7e3f53ba6f3 repository/core/e2fsprogs/build -rwxr-xr-x 493 bytes
2356b251Cem Keylan gcc: bump to 11.2.0 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e

export CFLAGS="$CFLAGS -static"
export LDFLAGS="$LDFLAGS -static"

./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --sysconfdir=/etc \
    --enable-symlink-install \
    --disable-uuidd \
    --disable-libuuid \
    --disable-libblkid \
    --disable-elf-shlibs \
    --disable-fsck

# MKDIR_P fixes an install issue on musl/busybox.
make
make MKDIR_P="install -d" DESTDIR="$1" install install-libs

# Make static libraries writable.
chmod -v u+w "$1/usr/lib/"*.a