1 Star 0 Fork 0

via/unixODBC

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README.QNX 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
Nick Gorham 提交于 2009-12-12 00:33 +08:00 . Initial checkin from 2.2.15pre source
Building unixODBC on QNX
========================
This has been tested on the QNX 6.1 x86 release.
1. unpack the distribution, and cd into the distribution dir
2. Add any missing files
automake --add-missing
3. Configure unixODBC
./configure --sysconfdir=/etc --enable-gui=no --prefix=/opt
4. run libtooloze using the QNX version of libtool, then update aclocal.m4
libtoolize --force
aclocal
5. We now need to alter the flags dlopen uses
cd libltdl
sed "s/RTLD_GLOBAL/RTLD_GROUP/" ltdl.c > ltdl.c.new
sed "s/RTLD_LAZY/RTLD_NOW/" ltdl.c.new > ltdl.c
cd ..
6. Force a reconfigure
rm config.cache
7. Make, then install
make
make install
And with luck and a trailing wind, that should be that.
EXTRA STUFF for QNX 6.2, if the wind is head on...
If you find that it segfaults, its worth going into the libltdl
directory, editing the Makefile, and changing the line
CFLAGS = -g -O2
to
CFLAGS = -g -O2 -DPIC -fPIC
then touch ltdl.c to force a rebuild
You may also get a error when building in the exe directory, to
fix this, go to the exe directory, edit Makefile, and change
OBJEXT = @OBJEXT@
to
OBJEXT = o
And
EXEEXT = @EXEEXT@
to
EXEEXT =
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/chooosky/unixODBC.git
[email protected]:chooosky/unixODBC.git
chooosky
unixODBC
unixODBC
master

搜索帮助