summarylogtreecommitdiffstats
path: root/configure.sh
blob: 9e36d43022d5fce69d47a31f83babd0038a9a337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

TARGET=aarch64-linux-gnu

PREFIX=/usr/$TARGET

source $TARGET-environment

# check if last arg is a path to configure, else use parent
for last; do true; done
if test -x "${last}/configure"; then
  config_path="$last"
else
  config_path=".."
fi

${config_path}/configure \
  --host=$TARGET --target=$TARGET --build="$CHOST" \
  --prefix=$PREFIX \
  --enable-shared --enable-static "$@"