#!/bin/sh
# Build script for gperf (autotools). No libtool/shared-lib output (gperf
# builds a single static binary tool, not a library) so the Template A
# libtool hammerhead* dynamic-linker sed does not apply here - confirmed
# by grepping the release configure for "libtool" (zero hits).
set -e
cd "$SRCDIR"

export CFLAGS="${CFLAGS} -D__EXTENSIONS__"

./configure \
    --prefix="$PREFIX" \
    --build="$BUILD_TRIPLE" \
    --host="$BUILD_TRIPLE"

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