forked from lurcher/unixODBC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.QNX
70 lines (38 loc) · 1.15 KB
/
README.QNX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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 =