18 CXX_VERSION := $(shell $(CXX) --version)
21 ifeq (10.0,$(findstring 10.0,$(CXX_VERSION)))
24 ifeq (10.1,$(findstring 10.1,$(CXX_VERSION)))
28 no_hidden_visibility ?= 1
31 CPPFLAGS += -fno-inline
44 CPPFLAGS += -D_REENTRANT $(PLATFORM_AIO_SUPPORT)
47 CCFLAGS += $(CFLAGS) -ip
48 DCFLAGS += -g -debug full
55 ifeq (-DACE_HAS_AIO_CALLS,$(PLATFORM_AIO_SUPPORT))
62 # Disable floating point optimizer solves problem with
63 # min/max float values in the TAO_IDL compiler tests
64 # If these options are not passed we can get overflows
65 # when testing min/max
66 ifeq ($(SYSARCH),ia64)
69 CPPFLAGS += -fp-model double
73 # Disable all optimizing in code
78 SOFLAGS += $(CPPFLAGS) -dynamiclib
79 SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.dylib $<; \
80 $(SOLINK.cc) -o $@ $(LDFLAGS) $(SOFLAGS) $(VSHDIR)$*.o
83 ifeq ($(shared_libs), 1)
84 ifneq ($static_libs_only), 1)
87 ifneq ($(no_hidden_visibility),1)
88 CCFLAGS += -fvisibility=hidden
90 CPPFLAGS += -DACE_HAS_CUSTOM_EXPORT_MACROS=0
91 endif # no_hidden_visibility
96 # Added line below to support "Executable Shared Object" files (as
97 # needed by the service configurator).
98 # Marius Kjeldahl <mariusk@sn.no, marius@funcom.com>
100 ESOBUILD = $(COMPILEESO.cc) $(PIC) -dynamiclib -o $(VSHDIR)$*.dylib $<