-
Notifications
You must be signed in to change notification settings - Fork 2
/
ve-conf-local.sh
59 lines (59 loc) · 1.24 KB
/
ve-conf-local.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#PREFIX=`pwd`/install
OPTS='-g2 -O1 -fPIC'
OPTS='-g2 -O1'
#
# Max Debug:
# 1. enable following section, and
# 2. also [for nas] set VE_SYSV_DEBUG 1 in src/ve/ffitarget.h
#
if [ 0 -eq 1 ]; then
OPTS="${OPTS} -DVE_DEBUG_LEVEL=5 -DVE_SYSV_DEBUG=1"
fi
BUILDDIR=build
INSTALLDIR=install
PREFIX="`pwd`/${INSTALLDIR}"
echo "OPTS : ${OPTS}"
echo "BUILDDIR : ${BUILDDIR}"
echo "INSTALLDIR : ${INSTALLDIR}"
echo "PREFIX : ${PREFIX}"
if [ -f ~/kruus/vt/env.bash ]; then
source ~/kruus/vt/env.bash --ve
fi
echo 'Not using:
AS="ncc" \
- CCAS="nas" \
- CCASFLAGS="" \
- '
mkdir -p "${BUILDDIR}"
rootdir=`pwd`
{
cd "${BUILDDIR}";
../configure \
--build=x86_64-unknown-linux-gnu \
--host=ve-unknown-linux-gnu \
--prefix="$PREFIX" \
--enable-debug \
--disable-raw-api \
--disable-multi-os-directory \
$@ \
CC="ncc" \
CFLAGS="$OPTS" \
CXX="nc++" \
CXXFLAGS="$OPTS" \
FC="nfort" \
FCFLAGS="$OPTS" \
CCAS="ncc" \
CCASFLAGS="" \
AS="ncc" \
LD="nld" \
CXXCPP="ncc -E" \
LDFLAGS="-Wl,-z,max-page-size=0x200000" \
READELF="nreadelf" \
RANLIB="nranlib" \
STRIP="nstrip" \
OBJDUMP="nobjdump" \
;
}
cd "$rootdir"
# nstrip not determined correctly?
# vim: sw=2 ts=2 et