aboutsummaryrefslogtreecommitdiff
path: root/scripts/ci/build_i386.sh
blob: 17b6bf668bafd3d543c25f3a9770c33c95e933b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -e

export TARGET_ARCH=i686-linux-gnu
if [ "${CC#clang}" != "${CC}" ] ; then
	export CC="clang --target=${TARGET_ARCH}"
	export CXX="clang++ --target=${TARGET_ARCH}"
else
	export CFLAGS="-m32"
	export CXXFLAGS="-m32"
	export LDFLAGS="-m32"
fi
export CPPFLAGS="-I/usr/include/i386-linux-gnu/dpdk"

exec "$(dirname "$0")"/build.sh