goto...@gmail.com schrieb:
When you link example use the -blibpath:/opt/example64/lib:/usr/lib:/lib
linker flag for the 64bit executable and
-blibpath:/opt/example/lib:/usr/lib:/lib for the 32bit one.
Better way: archive both the 64- and 32bit .so shared libs into a single
.a archive and link against the .a instead. Then the loader will find
the correct object. But you have to do this for all predependencies
bottom up.
As long as the objects are not stripped, you can relink them with ld.
Another question: Why do you still build a 32bit application on AIX 6.1?
AIX 6.1 does not run on 32bit hardware, so it is safe to assume 64bit.
If you want/must support AIX 5.x too, to must build on AIX 5.x too. It
also safe to assume that a 32bit only system is running AIX 5.3 or
earlier and is End-of-Life.
--
Uli Link