summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_sunos5_ghs.GNU
blob: 7467c50459a530800f2228677ca97882c17ec687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id$

# SunOS 5.x (Solaris 2.x) with GreenHills compiler.

debug = 1
optimize = 1
threads = 1
exceptions =

ifeq ($(threads),0)
  CFLAGS += -DACE_MT_SAFE=0
endif # threads

CC       = gcx
CXX      = $(CC)
CCFLAGS  += $(CFLAGS) --no_rtti -tnone
DCFLAGS  += -g
DLD      = $(CXX)
LD       = $(CXX)
LDFLAGS  = --no_auto_instantiation
LIBS     += -lsocket -ldl -lgen -lnsl -lposix4 -lthread -lw
OCFLAGS  += -OL -OM
PIC      = -PIC
RANLIB   = @true
AR       = ax
ARFLAGS  = ruv
RANLIB   = @true
SOFLAGS  = -shared

ifdef exceptions
  CCFLAGS += --exceptions
else  # ! exceptions
  CCFLAGS += --no_exceptions
endif # ! exceptions