Featured post
c++ - How to define where libs are loaded from -
i trying compile omniorb on aix 6.1 gcc 4.2.0.
the initialization not work picking non pthreaded library.
if set libpath /opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/ omninames not work, streams interface gives exception.
setting libpath /opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/pthread seems work, other non pthreaded programs pick pthreaded lib may cause problems...
the link looks this:
g++ -o omninames -o2 -wall -wno-unused -fexceptions -wl,-brtl -wl,-blibpath:/lib:/usr/lib:/opt/dbx/omniorb-4/lib -l../../../lib -l../../../../lib omninames.o namingcontext_i.o log.o omninameswin.o -lomniorb4-ar -lomnithread34 -lpthreads
how resolve ??
note have tried change libpath using configure arguments without success.
launching via wrapper script set libpath correctly easiest.
then there runpath/rpath feature of elf allows embded search path dynamic libraries in executable; don't know if aix implement it. it , set same argument linux , solaris, -wl,--enable-new-dtags -wl,-r$(runpath)
dt_runpath, -wl,--disable-new-dtags -wl,-r$(rpath)
dt_rpath; may want test -wl,-r$(rpath)
(which set dt_rpath).
- Get link
- X
- Other Apps
Comments
Post a Comment