blob: c395aac8218b8ae48221d683a419213a02e0c98d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/bash
set -e
export TARGET_ARCH=riscv64-linux-gnu
if [ "${CC#clang}" != "${CC}" ] ; then
export CC="clang --target=${TARGET_ARCH}"
export CXX="clang++ --target=${TARGET_ARCH}"
else
export CC="${TARGET_ARCH}-gcc"
export CXX="${TARGET_ARCH}-g++"
fi
# Use target libraries
export PKG_CONFIG_PATH=
export PKG_CONFIG_LIBDIR=/usr/lib/${TARGET_ARCH}/pkgconfig
cd "$(dirname "$0")"/../..
./bootstrap
./configure \
--host=${TARGET_ARCH} --build=x86_64-linux-gnu \
--prefix=/opt/odp \
${CONF}
make clean
make -j $(nproc)
make install
make installcheck
|