|
root / base / libpthread-stubs / build.sh
build.sh Bash 21 lines 680 B
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# Build script for libpthread-stubs (autotools, Template A).
# NOTE: the 0.5 release tarball ships only Makefile.am/configure.ac (no
# meson.build) despite some packaging docs describing it as a Meson port -
# verified 2026-07-22 by inspecting the actual distfile. Header/.pc only,
# no compiled library content - just satisfies libxcb's pkg-config check.
set -e
cd "$SRCDIR"

export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig:$PKG_CONFIG_PATH"

./configure \
    --prefix="$PREFIX" \
    --build="$BUILD_TRIPLE" \
    --host="$BUILD_TRIPLE" \
    --sysconfdir="$SYSCONFDIR" \
    --disable-static

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"