forked from equinor/komodo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-mk.sh
executable file
·48 lines (42 loc) · 890 Bytes
/
python-mk.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
#!/bin/bash
set -e
JOBS=1
while test $# -gt 0; do
case "$1" in
--cmake)
shift
export CMAKE_EXEC=$1
;;
--fakeroot)
shift
;;
--jobs)
shift
export JOBS=$1
;;
--prefix)
shift
export PREFIX=$1
;;
--python)
shift
;;
--target)
shift
export TARGET=$1
;;
*)
export OPTS="$OPTS $1"
;;
esac
shift
done
set -x
./configure --prefix=$PREFIX \
--enable-shared \
--enable-optimizations \
--with-ensurepip=install \
"LDFLAGS=-Wl,-rpath=$PREFIX/lib" \
$OPTS
make -j$JOBS
make -j$JOBS install