-
Notifications
You must be signed in to change notification settings - Fork 2
/
ve-configure.sh
44 lines (41 loc) · 959 Bytes
/
ve-configure.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
#PREFIX=`pwd`/install
OPTS='-g -O0'
#OPTS='-g2 -O1'
# do not add -fPIC here. libffi builds both .a and .so
if [ -f ~/kruus/vt/env.bash ]; then
source ~/kruus/vt/env.bash --ve
fi
echo 'Not using:
CCAS="nas" \
AS="ncc" \
CCASFLAGS="" \
--disable-structs \
'
echo "ve-configure.sh : install PREFIX=$PREFIX"
echo " : CFLAGS=$CFLAGS"
echo " : LDFLAGS=$LDFLAGS"
./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"
# nstrip not determined correctly?