Difference between revisions of "UnixODBC"
From CBLFS
Jump to navigationJump to searchLine 39: | Line 39: | ||
sed -i "s/void yyerror/#define YY_FLUSH_BUFFER\n\n&/" sqp/lex.l && | 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}" \ | CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" USE_ARCH=32 PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" \ | ||
− | ./configure --prefix=/usr --sysconfdir=/etc/unixodbc \ | + | LDFLAGS="-L/usr/lib" ./configure --prefix=/usr --sysconfdir=/etc/unixodbc \ |
--enable-ltdllib --enable-fdb && | --enable-ltdllib --enable-fdb && | ||
make | make | ||
Line 54: | Line 54: | ||
sed -i "s/void yyerror/#define YY_FLUSH_BUFFER\n\n&/" sqp/lex.l && | 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}" \ | CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" USE_ARCH=n32 PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" \ | ||
− | ./configure --prefix=/usr --sysconfdir=/etc/unixodbc \ | + | LDFLAGS="-L/usr/lib32" ./configure --prefix=/usr --sysconfdir=/etc/unixodbc \ |
--libdir=/usr/lib32 --enable-ltdllib --enable-fdb && | --libdir=/usr/lib32 --enable-ltdllib --enable-fdb && | ||
make | make | ||
Line 69: | Line 69: | ||
sed -i "s/void yyerror/#define YY_FLUSH_BUFFER\n\n&/" sqp/lex.l && | 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}" \ | CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" USE_ARCH=64 PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" \ | ||
− | ./configure --prefix=/usr --sysconfdir=/etc/unixodbc \ | + | LDFLAGS="-L/usr/lib64" ./configure --prefix=/usr --sysconfdir=/etc/unixodbc \ |
--libdir=/usr/lib64 --enable-ltdllib --enable-fdb && | --libdir=/usr/lib64 --enable-ltdllib --enable-fdb && | ||
make | make |
Revision as of 07:12, 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 && 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 && 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