Difference between revisions of "UnixODBC"
From CBLFS
Jump to navigationJump to search (→64Bit) |
(→N32) |
||
Line 56: | Line 56: | ||
LDFLAGS="-L/usr/lib32" ./configure --prefix=/usr --sysconfdir=/etc/unixodbc \ | LDFLAGS="-L/usr/lib32" ./configure --prefix=/usr --sysconfdir=/etc/unixodbc \ | ||
--libdir=/usr/lib32 --enable-ltdllib --enable-fdb --with-qt-libraries=${QTDIR}/lib32 && | --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 | make | ||
Revision as of 11:55, 24 September 2006
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