-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathkerberos.sh
More file actions
41 lines (33 loc) · 824 Bytes
/
Copy pathkerberos.sh
File metadata and controls
41 lines (33 loc) · 824 Bytes
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
#!/bin/bash
set -ex
os=$1
triple=$2
mkdir /kerberos
curl --retry 3 -sSfL https://kerberos.org/dist/krb5/1.20/krb5-1.20.tar.gz -o krb5.tar.gz
tar -xzf /krb5.tar.gz --strip-components 1 -C /kerberos
rm /krb5.tar.gz
cd /kerberos/src
export krb5_cv_attr_constructor_destructor=yes,yes
export ac_cv_func_regcomp=yes
export ac_cv_printf_positional=yes
_configure () {
ecode=0
prefix=/usr/local/${triple}
if [ $triple == "x86_64-linux-gnu" ]; then
prefix=/usr/local
fi
AR=${triple}-ar CC=${triple}-gcc CPP=${triple}-cpp \
CXX=${triple}-g++ LD=${triple}-ld ./configure \
--prefix=${prefix} \
--host=${triple} \
--disable-shared \
--enable-static \
--without-system-verto \
--disable-rpath \
|| ecode=$?
cat config.log
return $ecode
}
_configure
make -j$(nproc)
make install