summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2004-01-27 20:16:07 +0000
committerBernard Normier <bernard@zeroc.com>2004-01-27 20:16:07 +0000
commit3b107cfce7219b8b6448e02fab080f94bd81a606 (patch)
tree9acbbd988371f8a249ab469925a19f212905fb3a /cpp
parentFixed minor bug (diff)
downloadice-3b107cfce7219b8b6448e02fab080f94bd81a606.tar.bz2
ice-3b107cfce7219b8b6448e02fab080f94bd81a606.tar.xz
ice-3b107cfce7219b8b6448e02fab080f94bd81a606.zip
Better macros
Diffstat (limited to 'cpp')
-rw-r--r--cpp/config/Make.rules.HP-UX29
1 files changed, 26 insertions, 3 deletions
diff --git a/cpp/config/Make.rules.HP-UX b/cpp/config/Make.rules.HP-UX
index e0a274c533c..1c60699d9f5 100644
--- a/cpp/config/Make.rules.HP-UX
+++ b/cpp/config/Make.rules.HP-UX
@@ -43,18 +43,41 @@ else
CXXFLAGS := -g0 $(CXXFLAGS)
endif
-LDPLATFORMFLAGS = -Wl,+s -Wl,+b$(prefix)/$(libsubdir)
+
+#
+# On HP-UX, we need -L for all dependent libraries
+#
+
+LIBPATH =
+
+ifneq ($(OPENSSL_HOME),)
+ LIBPATH += -L$(OPENSSL_HOME)/$(libsubdir)
+endif
+
+ifneq ($(BZIP2_HOME),)
+ LIBPATH += -L$(BZIP2_HOME)/$(libsubdir)
+endif
+
+ifneq ($(DB_HOME),)
+ LIBPATH += -L$(DB_HOME)/$(libsubdir)
+endif
+
+ifneq ($(EXPAT_HOME),)
+ LIBPATH += -L$(EXPAT_HOME)/$(libsubdir)
+endif
+
+LDPLATFORMFLAGS = -Wl,+s -Wl,+b$(prefix)/$(libsubdir) $(LIBPATH)
mklibfilename = lib$(1).$(2)
mksoname = lib$(1).$(2)
mklibname = lib$(1).sl
mkshlib = $(CXX) -b -Wl,-Bsymbolic $(LDFLAGS) -o $(1) -Wl,+h$(2) $(3) $(4)
-BASELIBS = -lIceUtil -lpthread
+BASELIBS = -lIceUtil -lxnet -lpthread
LIBS = -lIce $(BASELIBS)
ICEUTIL_OS_LIBS := -lpthread -lrt
-ICE_OS_LIBS :=
+ICE_OS_LIBS :=
lp64suffix := /pa20_64