source:
scripts/untested/blfs-scripts/blfs-mysql.sh
@
d5e4fdc0
Last change on this file since d5e4fdc0 was 617118d, checked in by , 18 years ago | |
---|---|
|
|
File size: 1.4 KB |
Line | |
---|---|
1 | #!/bin/bash |
2 | |
3 | ### mysql ### |
4 | |
5 | cd ${SRC} |
6 | LOG=mysql-blfs.log |
7 | |
8 | SELF=`basename ${0}` |
9 | set_buildenv |
10 | set_libdirname |
11 | setup_multiarch |
12 | if [ ! "${libdirname}" = "lib" ]; then |
13 | extra_conf="--libdir=/usr/${libdirname}" |
14 | fi |
15 | |
16 | unpack_tarball mysql-${MYSQL_VER} |
17 | cd ${PKGDIR} |
18 | |
19 | max_log_init mysql ${MYSQL_VER} "blfs (shared)" ${CONFLOGS} ${LOG} |
20 | CC="${CC-gcc} ${ARCH_CFLAGS}" \ |
21 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \ |
22 | CFLAGS="${TGT_CFLAGS}" \ |
23 | CXXLAGS="${TGT_CFLAGS}" \ |
24 | CPPFLAGS="-D_GNU_SOURCE" \ |
25 | ./configure --prefix=/usr ${extra_conf} \ |
26 | --libexecdir=/usr/${libdirname}/mysql --localstatedir=/var/lib/mysql \ |
27 | --enable-thread-safe-client --enable-assembler \ |
28 | --enable-local-infile --with-named-thread-libs=-lpthread \ |
29 | --with-unix-socket-path=/var/run/mysql/mysql.sock \ |
30 | --without-debug --without-bench --without-readline \ |
31 | --with-libwrap --with-openssl \ |
32 | >> ${LOGFILE} 2>&1 && |
33 | echo " o Configure OK" && |
34 | |
35 | min_log_init ${BUILDLOGS} && |
36 | make ${PMFLAGS} testdir=/usr/${libdirname}/mysql/mysql-test \ |
37 | >> ${LOGFILE} 2>&1 && |
38 | echo " o Build OK" && |
39 | |
40 | min_log_init ${INSTLOGS} && |
41 | make testdir=/usr/${libdirname}/mysql/mysql-test install \ |
42 | >> ${LOGFILE} 2>&1 && |
43 | echo " o ALL OK" || barf |
44 | |
45 | if [ "Y" = "${MULTIARCH}" ]; then |
46 | use_wrapper /usr/bin/{mysql_config,mysql_fix_privilege_tables,mysql_install_db,mysqlbug} |
47 | create_stub_hdrs /usr/include/mysql/my_config.h |
48 | fi |
49 | |
50 | cd /usr/${libdirname} && |
51 | ln -sf mysql/libmysqlclient{,_r}.so* . |
Note: See TracBrowser
for help on using the repository browser.