[omniORB] how to rebuild echo with static omniORB libraries?

Sai-Lai Lo s.lo@uk.research.att.com
Fri, 25 May 2001 10:16:42 +0100


Dimitry,

I assume you have created a platform .mk file similar to x86_nt_4.0.mk. In
that
case you are using the settings in win32.mk.

If you look into win32.mk, edit the lines that set the library names as
follows:

----
lib_depend := $(patsubst %,$(LibPattern),omniORB)
omniORB_lib_depend := $(GENERATE_LIB_DEPEND)

lib_depend := $(patsubst %,$(LibPattern),omniDynamic)
omniDynamic_lib_depend := $(GENERATE_LIB_DEPEND)

OMNIORB_LIB = $(patsubst %,$(LibPattern),omniORB) \
		$(patsubst %,$(LibPattern),omniDynamic) \
		$(OMNITHREAD_LIB) wsock32.lib advapi32.lib
OMNIORB_LIB_NODYN = $(patsubst %,$(LibPattern),omniORB) \
            $(msvc_work_around_stub) \
		$(OMNITHREAD_LIB) wsock32.lib advapi32.lib

----
OMNITHREAD_LIB = $(patsubst %,$(LibPattern),omnithread)
lib_depend := $(patsubst %,$(LibPattern),omnithread)
OMNITHREAD_LIB_DEPEND := $(GENERATE_LIB_DEPEND)

-----


-----Original Message-----
From: owner-omniorb-list@uk.research.att.com
[mailto:owner-omniorb-list@uk.research.att.com]On Behalf Of Dmitry
Mityugov
Sent: 25 May 2001 08:29
To: omniorb-list@uk.research.att.com
Subject: [omniORB] how to rebuild echo with static omniORB libraries?


Hello,

What should I change in the build process to rebuild eg*.exe with
omniORB3.lib and omnithread.lib, not with omniORB303_rt.lib and
omnithread2_rt.lib?

Although this question is simple (I hope), the reason I ask is rather
complex. I'm porting omniORB to NetWare, and doing this in two steps. First,
I'm recompiling omniORB (static libraries only, no executables like the IDL
compilers etc) with CodeWarrior 6.1 for Windows to resolve all problems
related to the compiler itself. I believe that this step is almost done
(well, I know that there is a big difference between almost finished and
finished program; at least I managed to build msvcstub.lib,
omniDynamic3.lib, omniORB3.lib, omnithread.lib and their debug versions).

The next step is to port the libraries to NetWare using an earlier version
of the compiler included with CodeWarrior PDK for NetWare. But to start
doing this I should build a few examples using the libraries built in the
previous step to verify that they indeed work. I noticed that the echo
example uses omniORB303_rt.lib and omnithread2_rt.lib that I have not built
(I'd like to delay all complexities related to NetWare dynamic libraries
until I have a working NetWare Loadable Module that sends "Hello World" to
my workstation and receives a reply), but could not find a way to change the
build process to use the static libraries instead.

Thank you in advance for your answer.

Dmitry Mityugov, DevNet SysOp 8
Member of the Novell SysOp Team
http://developer.novell.com/support/sysop/