2 # This file should allow ACE to be built on Linux, using the Intel compiler.
6 include $(ACE_ROOT)/include/makeinclude/platform_linux_common.GNU
17 CXX_VERSION := $(shell $(CXX) --version)
20 ifeq (8.0,$(findstring 8.0,$(CXX_VERSION)))
21 CFLAGS += -wd1476,1505
23 ifeq (8.1,$(findstring 8.1,$(CXX_VERSION)))
24 CFLAGS += -wd1476,1505,1572 -no-gcc
26 ifeq (9.0,$(findstring 9.0,$(CXX_VERSION)))
29 ifeq (9.1,$(findstring 9.1,$(CXX_VERSION)))
32 ifeq (10.0,$(findstring 10.0,$(CXX_VERSION)))
35 ifeq (10.1,$(findstring 10.1,$(CXX_VERSION)))
38 ifeq (11.0,$(findstring 11.0,$(CXX_VERSION)))
41 ifeq (12.0,$(findstring 12.0,$(CXX_VERSION)))
42 no_hidden_visibility ?= 0
45 no_hidden_visibility ?= 1
48 CPPFLAGS += -fno-inline
61 CPPFLAGS += -D_REENTRANT
64 CCFLAGS += $(CFLAGS) -ip
65 DCFLAGS += -g -debug full
77 # Disable floating point optimizer solves problem with
78 # min/max float values in the TAO_IDL compiler tests
79 # If these options are not passed we can get overflows
80 # when testing min/max
81 CPPFLAGS += -fp-model double
84 FLAGS_C_CC += -prof-gen
88 # Disable all optimizing in code
92 SOFLAGS += $(CPPFLAGS) -shared
93 SOBUILD = $(COMPILE.cc) $(PIC) -o $(VSHDIR)$*.so $<; \
94 $(SOLINK.cc) -o $@ $(LDFLAGS) $(VSHDIR)$*.o
97 ifeq ($(shared_libs), 1)
98 ifneq ($static_libs_only), 1)
100 ifneq ($(no_hidden_visibility),1)
101 CCFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
103 CPPFLAGS += -DACE_HAS_CUSTOM_EXPORT_MACROS=0
104 endif # no_hidden_visibility
109 # Added line below to support "Executable Shared Object" files (as
110 # needed by the service configurator).
111 # Marius Kjeldahl <mariusk@sn.no, marius@funcom.com>
113 ESOBUILD = $(COMPILEESO.cc) $(PIC) -shared -o $(VSHDIR)$*.so $<