-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwafbuild-fed.sh
executable file
·56 lines (52 loc) · 2.22 KB
/
wafbuild-fed.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
IDMAP_SHARED_MODULES="idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2"
PDB_SHARED_MODULES="pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4"
AUTH_SHARED_MODULES="auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4"
BUNDLES_LIBS="heimdal,!zlib,!popt,\
talloc,pytalloc,pytalloc-util,\
tevent,pytevent,\
tdb,pytdb,\
ldb,pyldb,pyldb-util"
LDFLAGS="-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"
CONFIGURE_OPTS=" \
\
--build=x86_64-redhat-linux-gnu \
--host=x86_64-redhat-linux-gnu \
--program-prefix= \
--disable-dependency-tracking \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
--datadir=/usr/share \
--includedir=/usr/include \
--libdir=/usr/lib64 \
--libexecdir=/usr/libexec \
--localstatedir=/var \
--sharedstatedir=/var/lib \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-fhs \
--with-piddir=/run \
--with-sockets-dir=/run/samba \
--with-modulesdir=/usr/lib64/samba \
--with-pammodulesdir=/usr/lib64/security \
--with-lockdir=/var/lib/samba/lock \
--with-statedir=/var/lib/samba \
--with-cachedir=/var/lib/samba \
--disable-rpath-install \
--with-shared-modules=${IDMAP_SHARED_MODULES},\
${PDB_SHARED_MODULES},\
${AUTH_SHARED_MODULES} \
--bundled-libraries=${BUNDLED_LIBS} \
--with-pam \
--with-pie \
--with-relro \
--without-fam \
--with-system-mitkrb5 \
--without-ad-dc \
--with-cluster-support \
--with-profiling-data \
--with-systemd \
$@"
make distclean && ( export ${LDFLAGS}; ./buildtools/bin/waf configure ${CONFIGURE_OPTS} ) && make -j8