blob: 47781f2058ca7ed9558d66747a32faef4eb15d4b (
plain) (
blame)
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
|
create_account mariadb &&
OPTS="$MADB_OPTS $OPTS" &&
CFLAGS="${CFLAGS//-ffast-math}" &&
local LD_PRELOAD_OLD="$LD_PRELOAD" &&
unset LD_PRELOAD &&
CFLAGS="$CFLAGS -DUSE_OLD_FUNCTIONS" &&
if glibc_is_nptl; then
OPTS="--with-named-thread-libs=-lpthread $OPTS" &&
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
fi &&
OPTS="--with-mysqld-user=mariadb \
--with-charset=$MADB_CHARSET \
--with-plugins=${MADB_ENGINES// /,} \
--localstatedir=${INSTALL_ROOT}/var/lib/mariadb \
--enable-assembler \
--enable-thread-safe-client \
--with-readline \
$OPTS" &&
default_build &&
LD_PRELOAD="$LD_PRELOAD_OLD" &&
make
|