Lx4U-book/docs/build-system/util-linux-systemd.md
2021-05-22 18:19:23 +03:00

1.8 KiB

Настройка

./configure ADJTIME_PATH=/var/lib/hwclock/adjtime   \
            --libdir=/usr/lib    \
            --disable-chfn-chsh  \
            --disable-login      \
            --disable-nologin    \
            --disable-su         \
            --disable-setpriv    \
            --disable-runuser    \
            --disable-pylibmount \
            --disable-static     \
            --without-python     \
            runstatedir=/run

Сборка

make

Тестирование

chown -Rv tester .
su tester -c "make -k check"

Установка

make install

Для multilib

Очистка

make distclean

Настройка

CC="gcc -m32" \
./configure ADJTIME_PATH=/var/lib/hwclock/adjtime   \
            --host=i686-pc-linux-gnu \
            --libdir=/usr/lib32      \
            --disable-chfn-chsh      \
            --disable-login          \
            --disable-nologin        \
            --disable-su             \
            --disable-setpriv        \
            --disable-runuser        \
            --disable-pylibmount     \
            --disable-static         \
            --without-python         \
            --enable-libmount-force-mountinfo \
            runstatedir=/run --disable-fdisks  --disable-mount  --disable-fsck   

Сборка

make

Установка

make DESTDIR=$PWD/DESTDIR install
cp -Rv DESTDIR/usr/lib32/* /usr/lib32
rm -rf DESTDIR