summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_osf1_4.0.GNU
blob: eda0ea2b7cc8e4462d55795b59959ac130888e5a (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# $Id$

# This platform macros file is intended to work with
# Digital UNIX 4.0 (OSF/1 4.0), using the cxx compiler..

debug = 1
exceptions = 1

CC              = cxx
CXX             = $(CC)
#### Note: -pthread uses POSIX threads.  If you want to use DCE threads
####       instead, change "-pthread" to "-threads".
CFLAGS          += -pthread

#### These flags can only be used with cxx Version 6.0 and later.
#### They can be enabled on the gmake command line with CXX_VER=POST_5X,
#### or by setting the CXX_VER environment variable to POST_5X.
# WARNING_FLAGS +=
#   9: nested comment not allowed.  But there's one in /usr/include/pdsc.h!
# 174: expr_has_no_effect
# 193: zero used for undefined preprocessing identifier
# 236: controlling expression is constant
# 340: value copied to temporary, reference to temporary used
# 401: base_class_with_nonvirtual_dtor
# 610: nonoverriding_function_decl
# 835: unreferenced_function_param
# 839: no_corresponding_delete (until this is fixed in libTAO)
ifeq ($(CXX_VER),POST_5X)
  WARNING_FLAGS += -w0 -msg_display_number -msg_display_tag \
                   -msg_disable 9,174,193,236,340,401,610,835,839
endif

CCFLAGS         += $(CFLAGS) -ptr ptrepository $(WARNING_FLAGS) #### -nortti
DCFLAGS         += -g -O0
DLD             = $(CXX)
LD              = $(CXX)
#### -lm is needed for TAO MT_Cubit client
LIBS            += $(CFLAGS) -ptr ptrepository -ltli -lrt -lm
OCFLAGS         += -O4
PIC             =
ARFLAGS         = cruvZ
# When libraries are archived, a hash index is automatically created
# so there is no need for ranlib
RANLIB          = /usr/bin/true
SOFLAGS         = -shared -use_ld_input $(ACELIB)
SOBUILD         = /bin/rm -f $@; $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.o $< && \
                  ln $(VSHDIR)$*.o $@

ifndef exceptions
  #### Disable the default exception handling of cxx >= 6.0.
  #### This is untested.  exceptions=1 is the default, so it's not used
  #### by default.
  CXX_HAS_EXCEPTIONS := \
    $(shell if cxx -V | egrep -v 'C\+\+ [a-zA-Z][6-9]' > /dev/null; then \
               echo 1; fi)
  ifdef CXX_HAS_EXCEPTIONS
    CCFLAGS += -nocleanup
  endif # CXX_HAS_EXCEPTIONS
endif # ! exceptions