mirror of
https://git.sr.ht/~lattis/muon
synced 2026-01-26 08:07:51 +00:00
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.
16 lines
294 B
Bash
Executable File
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"
|