[omniORB] small patches to makefiles for building statically

David Byron dbyron@coactive.com
Tue, 23 Oct 2001 16:10:24 -0700


Without these, I get an error message like:

dbyron@porto:~/salem/src/omniorb3/src/services/mklib$ make
making all in src/services/mklib/mkBOAlib...
make[1]: Entering directory
`/home/dbyron/salem/src/omniorb3/src/services/mklib/mkBOAlib'
make[1]: *** No rule to make target `mkshared', needed by `all'.  Stop.
make[1]: Leaving directory
`/home/dbyron/salem/src/omniorb3/src/services/mklib/mkBOAlib'
make: *** [all] Error 1

With these patches, make continues just fine.

I'm building from the 3.0.4 tarball.  Maybe this helps someone else, or
could go into cvs?

Thanks.

-DB

dbyron@porto:~/salem/src/omniorb3/src/services/mklib$ cvs -q diff
Index: dir.mk
===================================================================
RCS file: /prj/salem/cvs/omniorb3/src/services/mklib/dir.mk,v
retrieving revision 1.1.1.1
diff -u -b -B -w -p -r1.1.1.1 dir.mk
--- dir.mk      2001/07/16 22:09:43     1.1.1.1
+++ dir.mk      2001/10/23 23:02:28
@@ -17,9 +17,13 @@ COS_DYNSK_SRCS = $(COS_INTERFACES:%=%Dyn
 
 CXXSRCS = $(COS_DYNSK_SRCS) $(COS_SK_SRCS) 
 
-all:: mkstatic mkshared
+all:: mkstatic
+export:: mkstatic
 
-export:: mkstatic mkshared
+ifdef BuildSharedLibrary
+all:: mkshared
+export:: mkshared
+endif
 
 export:: $(COS_INTERFACES:%=%.hh) COS_sysdep.h
        @(for i in $^; do \
Index: mkBOAlib/dir.mk
===================================================================
RCS file: /prj/salem/cvs/omniorb3/src/services/mklib/mkBOAlib/dir.mk,v
retrieving revision 1.1.1.1
diff -u -b -B -w -p -r1.1.1.1 dir.mk
--- mkBOAlib/dir.mk     2001/07/16 22:09:43     1.1.1.1
+++ mkBOAlib/dir.mk     2001/10/23 23:04:35
@@ -16,9 +16,13 @@ COS_SK_OBJS = $(COS_INTERFACES:%=%SK.o)
 COS_SK_SRCS = $(COS_INTERFACES:%=%SK.cc)
 CXXSRCS = $(COS_SK_SRCS) 
 
-all:: mkstatic mkshared
+all:: mkstatic
+export:: mkstatic
 
-export:: mkstatic mkshared
+ifdef BuildSharedLibrary
+all:: mkshared
+export:: mkshared
+endif
 
 export:: $(COS_INTERFACES:%=%.hh) COS_sysdep.h
        @(for i in $^; do \
dbyron@porto:~/salem/src/omniorb3/src/services/mklib$ 
---
David Byron                     dbyron@coactive.com
Coactive Networks, Inc.         http://www.coactive.com
28 Liberty Ship Way             voice:(415)289-7800
Sausalito, CA  94965            fax:(415)289-1320