UnixODBC

From CBLFS
Revision as of 10:55, 24 September 2006 by Jciccone (talk | contribs) (N32)
Jump to navigationJump to search
Download Source: http://www.unixodbc.org/unixODBC-2.2.11.tar.gz

Dependencies

Optional

Non-Multilib

Compile the package:

sed -i "s/void yyerror/#define YY_FLUSH_BUFFER\n\n&/" sqp/lex.l &&
./configure --prefix=/usr --sysconfdir=/etc/unixodbc \
    --enable-ltdllib --enable-fdb &&
make

Install the package

make install &&
find doc -name "Makefile*" -exec rm {} \; &&
chmod 644 doc/{lst,ProgrammerManual/Tutorial}/* &&
install -v -m755 -d /usr/share/doc/unixODBC-2.2.11 &&
cp -v -R doc/* /usr/share/doc/unixODBC-2.2.11

Multilib

32Bit

Compile the package:

sed -i "s/void yyerror/#define YY_FLUSH_BUFFER\n\n&/" sqp/lex.l &&
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" USE_ARCH=32 PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \
LDFLAGS="-L/usr/lib" ./configure --prefix=/usr --sysconfdir=/etc/unixodbc \
    --enable-ltdllib --enable-fdb &&
make

Install the package

make install &&
mv -v /usr/bin/odbc_config{,-32}

N32

Compile the package:

sed -i "s/void yyerror/#define YY_FLUSH_BUFFER\n\n&/" sqp/lex.l &&
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" USE_ARCH=n32 PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \
LDFLAGS="-L/usr/lib32" ./configure --prefix=/usr --sysconfdir=/etc/unixodbc \
    --libdir=/usr/lib32 --enable-ltdllib --enable-fdb --with-qt-libraries=${QTDIR}/lib32 &&
sed -i -e "/sys_lib_search_path_spec=/s@/lib@&32@g" \
       -e "/sys_lib_dlsearch_path_spec=/s@/lib@&32@g" libtool &&
make

Install the package

make install &&
mv -v /usr/bin/odbc_config{,-n32}

64Bit

Compile the package:

sed -i "s/void yyerror/#define YY_FLUSH_BUFFER\n\n&/" sqp/lex.l &&
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \
LDFLAGS="-L/usr/lib64" ./configure --prefix=/usr --sysconfdir=/etc/unixodbc \
    --libdir=/usr/lib64 --enable-ltdllib --enable-fdb --with-qt-libraries=${QTDIR}/lib64 &&
sed -i -e "/sys_lib_search_path_spec=/s@/lib@&64@g" \
       -e "/sys_lib_dlsearch_path_spec=/s@/lib@&64@g" libtool &&
make

Install the package

make install &&
mv -v /usr/bin/odbc_config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/odbc_config &&
find doc -name "Makefile*" -exec rm {} \; &&
chmod 644 doc/{lst,ProgrammerManual/Tutorial}/* &&
install -v -m755 -d /usr/share/doc/unixODBC-2.2.11 &&
cp -v -R doc/* /usr/share/doc/unixODBC-2.2.11
Retrieved from "?title=UnixODBC&oldid=2062"