1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00
systemd/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[@]}"