source: scripts/untested/blfs-scripts/blfs-unixodbc.sh@ 66f17d5

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 66f17d5 was 1c379e4, checked in by Jim Gifford <clfs@…>, 19 years ago

r589@server (orig r587): ryan | 2005-08-05 22:57:16 -0700
Add a pile of new scripts, and add -32 and -64 symlinks



  • Property mode set to 100755
File size: 1.5 KB
Line 
1#!/bin/bash
2
3### unixODBC ###
4
5cd ${SRC}
6LOG=unixODBC-blfs.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12if [ ! "${libdirname}" = "lib" ]; then
13 extra_conf="--libdir=/usr/${libdirname}"
14fi
15
16USE_QT=Y
17if [ "Y" = "${USE_QT}" ]; then
18 QTDIR="${QTDIR-/opt/qt}"
19 extra_conf="${extra_conf} --with-qt-dir=${QTDIR}"
20 extra_conf="${extra_conf} --with-qt-bin=${QTDIR}/bin"
21 extra_conf="${extra_conf} --with-qt-includes=${QTDIR}/include"
22 extra_conf="${extra_conf} --with-qt-libraries=${QTDIR}/${libdirname}"
23fi
24
25unpack_tarball unixODBC-${UNIXODBC_VER}
26cd ${PKGDIR}
27
28# Fix flex 2.5.31 issues w YY_FLUSH_BUFFER being undefined
29apply_patch unixODBC-2.2.11-flex_fixes
30
31# fix libtool search paths
32if [ ! "Y" = "${libdirname}" ]; then
33 sed -i -e "/^sys_lib_\(\|dl\)search_path_spec=/s@/lib@/${libdirname}@g" \
34 configure
35 #sed -i -e "/^sys_lib_\(\|dl\)search_path_spec=/s@/lib@/${libdirname}@g" \
36 # libltdl/configure
37fi
38
39max_log_init unixODBC ${UNIXODBC_VER} "blfs (shared)" ${CONFLOGS} ${LOG}
40CC="${CC-gcc} ${ARCH_CFLAGS}" \
41CXX="${CXX-g++} ${ARCH_CFLAGS}" \
42CFLAGS="${TGT_CFLAGS}" \
43CXXLAGS="${TGT_CFLAGS}" \
44LDFLAGS="-L/usr/${libdirname}" \
45./configure --prefix=/usr --sysconfdir=/etc ${extra_conf} \
46 --infodir=/usr/share/info --mandir=/usr/share/man \
47 >> ${LOGFILE} 2>&1 &&
48echo " o Configure OK" &&
49
50min_log_init ${BUILDLOGS} &&
51make ${PMFLAGS} \
52 >> ${LOGFILE} 2>&1 &&
53echo " o Build OK" &&
54
55min_log_init ${INSTLOGS} &&
56make install \
57 >> ${LOGFILE} 2>&1 &&
58echo " o ALL OK" || barf
59
Note: See TracBrowser for help on using the repository browser.