Big script
This commit is contained in:
32
toolchain/scripts/135-libtool.sh
Executable file
32
toolchain/scripts/135-libtool.sh
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
# ============================================================================
|
||||
# DarkForge Linux — Phase 3, Chapter 8.38: Libtool
|
||||
# ============================================================================
|
||||
# Purpose: Build GNU libtool, a generic library support script.
|
||||
# Handles building shared and static libraries portably.
|
||||
# Inputs: /sources/libtool-2.5.4.tar.xz
|
||||
# Outputs: libtool binary and library support tools in /usr/
|
||||
# Assumes: Running inside chroot
|
||||
# Ref: LFS 13.0 §8.38
|
||||
# ============================================================================
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
source /sources/toolchain-scripts/100-chroot-env.sh
|
||||
|
||||
PACKAGE="libtool"
|
||||
VERSION="2.5.4"
|
||||
|
||||
echo "=== Building ${PACKAGE}-${VERSION} (Phase 3) ==="
|
||||
|
||||
pkg_extract "${PACKAGE}-${VERSION}.tar.xz"
|
||||
cd "${PACKAGE}-${VERSION}"
|
||||
|
||||
./configure \
|
||||
--prefix=/usr
|
||||
|
||||
make
|
||||
make install
|
||||
|
||||
pkg_cleanup "${PACKAGE}-${VERSION}"
|
||||
echo "=== ${PACKAGE}-${VERSION} complete ==="
|
||||
Reference in New Issue
Block a user