1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-26 08:55:18 +03:00
systemd-stable/configure

25 lines
428 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
# SPDX-License-Identifier: LGPL-2.1-or-later
set -e
2021-09-29 22:28:55 +03:00
cflags="CFLAGS=${CFLAGS-}"
cxxflags="CXXFLAGS=${CXXFLAGS-}"
args=()
for arg in "$@"; do
case "$arg" in
CFLAGS=*)
2021-09-29 22:28:55 +03:00
cflags="$arg"
;;
CXXFLAGS=*)
2021-09-29 22:28:55 +03:00
cxxflags="$arg"
;;
*)
args+=("$arg")
esac
done
2021-09-29 22:28:55 +03:00
export "${cflags?}" "${cxxflags?}"
set -x
exec meson build "${args[@]}"