summaryrefslogtreecommitdiff
path: root/ACE/include/makeinclude/platform_sunos5_ghs.GNU
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/include/makeinclude/platform_sunos5_ghs.GNU')
-rw-r--r--ACE/include/makeinclude/platform_sunos5_ghs.GNU35
1 files changed, 35 insertions, 0 deletions
diff --git a/ACE/include/makeinclude/platform_sunos5_ghs.GNU b/ACE/include/makeinclude/platform_sunos5_ghs.GNU
new file mode 100644
index 00000000000..57bd6b7ae7b
--- /dev/null
+++ b/ACE/include/makeinclude/platform_sunos5_ghs.GNU
@@ -0,0 +1,35 @@
+# $Id$
+
+# SunOS 5.x (Solaris 2.x) with GreenHills compiler.
+
+debug ?= 1
+exceptions ?= 0
+optimize ?= 1
+threads ?= 1
+
+CC = gcx
+CXX = $(CC)
+CCFLAGS += $(CFLAGS) --no_rtti $(TEMPLATES_FLAG)
+DCFLAGS += -g
+DLD = $(CXX)
+LD = $(CXX)
+LIBS += -lsocket -ldl -lgen -lnsl -lposix4
+OCFLAGS += -OL -OM
+PIC = -PIC
+RANLIB = @true
+AR = $(CC) $(LDFLAGS)
+ARFLAGS = -archive -o
+RANLIB = @true
+SOFLAGS += -shared
+
+ifeq ($(threads),1)
+ #### Don't use g7 register with threading.
+ CFLAGS += -Xleaveg7
+ LIBS += -lthread
+endif # ! threads
+
+ifeq (1,$(exceptions))
+ CCFLAGS += --exceptions
+else # ! exceptions
+ CCFLAGS += --no_exceptions
+endif # ! exceptions