muon/bootstrap.sh
Stone Tickle ce86206996 pkgconfig: select backend at runtime
exec and null are always available.  libpkgconf is preferred if
available.  We can simplify bootstrap.sh since muon can call pkg-config
itself.  This will probably break some CI.
2025-05-12 10:11:05 -04:00

16 lines
294 B
Bash
Executable File

#!/bin/sh
# SPDX-FileCopyrightText: Stone Tickle <lattis@mochiro.moe>
# SPDX-License-Identifier: GPL-3.0-only
# Requirements:
# - c99
# - sh
set -eux
dir="$1"
mkdir -p "$dir"
# shellcheck disable=SC2086
${CC:-c99} ${CFLAGS:-} ${LDFLAGS:-} -Iinclude "src/amalgam.c" -o "$dir/muon-bootstrap"