File: configure

package info (click to toggle)
systemd 241-5
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 53,432 kB
  • sloc: ansic: 355,146; xml: 59,093; python: 21,623; sh: 6,683; perl: 1,649; makefile: 264; awk: 90; lisp: 13; sed: 1
file content (21 lines) | stat: -rwxr-xr-x 337 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash -e

cflags=CFLAGS="$CFLAGS"
cxxflags=CXXFLAGS="$CXXFLAGS"
declare -a args
j=0
for i in "$@"; do
    case "$i" in
        CFLAGS=*)
            cflags="$i";;
        CXXFLAGS=*)
            cxxflags="$i";;
	*)
	    args[$j]="$i"
	    j=$((j+1))
    esac
done

export "$cflags" "$cxxflags"
set -x
exec meson build "${args[@]}"