[omniORB] Patch to get AIX working again

Mark Zimmerman markzimm at frii.com
Thu Sep 16 14:27:45 BST 2004


Greetings:

The attached patch addresses the following problems under AIX:

1. omniORB-4.0.4 will not build on AIX with the IBM compiler.

2. Earlier versions would build but shared libraries did not work
   properly. If you built your executables without the -brtl option,
   they would work but they would be statically linked to the omniORB
   libraries, rendering them huge. If you used the -brtl option, they
   would appear to be built properly but would fail miserably at run
   time.

-- Mark
-------------- next part --------------
--- omniORB-4.0.4-baseline/mk/beforeauto.mk.in	2004-09-16 11:48:52.000000000 -0600
+++ omniORB-4.0.4/mk/beforeauto.mk.in	2004-09-16 12:27:56.000000000 -0600
@@ -938,6 +938,7 @@
 CXXMAKEDEPEND   += -D_AIX
 CDEBUGFLAGS      =
 CXXDEBUGFLAGS    =
+CXXLINKOPTIONS  += -brtl -bnoipath -blibpath:/usr/lib:$(prefix)/lib
 
 CXXOPTIONS	= -qstaticinline -qmaxmem=8192 -qlonglong -qlongdouble
 
@@ -951,7 +952,8 @@
 PythonSHAREDLIB_SUFFIX = so
 
 # this works only for xlc version >= 5
-SharedLibraryPlatformLinkFlagsTemplate = -qmkshrobj
+SharedLibraryPlatformLinkFlagsTemplate = -G -qmkshrobj \
+               -bnoipath -blibpath:/usr/lib:$(prefix)/lib
 
 endif	# compiler not gcc
 endif	# AIX


More information about the omniORB-list mailing list