summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_sunos5_kcc.GNU
diff options
context:
space:
mode:
authoroci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-02-14 18:57:00 +0000
committeroci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-02-14 18:57:00 +0000
commitafcaba768dc2d447ee1828c42493955483c26094 (patch)
tree9eb46a2e7b5e000f39a17dbbd5b7bfdc95576daa /include/makeinclude/platform_sunos5_kcc.GNU
parent944cbe6d8eded65630b90dea9874474fa402d045 (diff)
downloadATCD-afcaba768dc2d447ee1828c42493955483c26094.tar.gz
Changes for building on HPUX, Solaris, and Linux with KCC
Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'include/makeinclude/platform_sunos5_kcc.GNU')
-rw-r--r--include/makeinclude/platform_sunos5_kcc.GNU59
1 files changed, 45 insertions, 14 deletions
diff --git a/include/makeinclude/platform_sunos5_kcc.GNU b/include/makeinclude/platform_sunos5_kcc.GNU
index 4114f417dfb..4993a039134 100644
--- a/include/makeinclude/platform_sunos5_kcc.GNU
+++ b/include/makeinclude/platform_sunos5_kcc.GNU
@@ -6,35 +6,66 @@
debug = 1
distrib = 0
threads = 1
+exceptions = 1
ifeq ($(threads),1)
CFLAGS += --thread_safe
LDFLAGS += --thread_safe
+ ARFLAGS = --thread_safe
+else
+ ARFLAGS =
+ CCFLAGS += -DACE_HAS_THREADS=0
endif # threads
CC = KCC
CXX = KCC
-DCFLAGS += -g
+DCFLAGS += +K0 -g
DLD = $(CXX)
+LD = $(CXX)
-ifneq ($exceptions,0)
- CCFLAGS += --exceptions
-endif # ! exceptions
+ifdef exceptions
+ ifneq ($exceptions,0)
+ CCFLAGS += --exceptions
+ endif # ! exceptions
+else
+ CCFLAGS += --no_exceptions
+ LDFLAGS += --no_exceptions
+endif
+
+
+
+LIBS += -Bdynamic -lsocket -lnsl -lgen -ldl -lposix4
+MATHLIB = -lm
+CPPFLAGS += $(CFLAGS)
+OCFLAGS += +K3 -o
+PIC = -KPIC
+AR = KCC
+ARFLAGS += -Bstatic -o
+RANLIB = echo
+SOFLAGS = -G $(CPPFLAGS)
-LD = $(CXX)
-LIBS += -lsocket -ldl -lnsl -lgen -lposix4
+ifdef static_libs_only
+ ifneq ($(static_libs_only),0)
+ static_libs=1
+ endif
+endif
+# Kind of a hack since LDFLAGS is used for both non-static
+# library generation and binary generation. LD is only used for
+# binary generation.
+ifneq ($(static_libs),0)
+ CCFLAGS += --one_instantiation_per_object
+ LD += -Bstatic
+ #
+ # If we want static libs, we must put -Bstatic it at the end of
+ # the library list. This insures that the KCC libraries
+ # are linked in statically.
+ #
+ LIBS += -Bstatic
+endif
-MATHLIB = -lm
-CPPFLAGS += $(CFLAGS)
-OCFLAGS += +K3
-PIC = -KPIC
-AR = ar
-ARFLAGS = -xar -o
-RANLIB = echo
-SOFLAGS = -G $(CPPFLAGS)
#### Create template repository to avoid compiler warning.
TEMPLATE_REPOSITORY = Templates.DB