diff options
Diffstat (limited to 'ACE/include/makeinclude/platform_g++_common.GNU')
-rw-r--r-- | ACE/include/makeinclude/platform_g++_common.GNU | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/ACE/include/makeinclude/platform_g++_common.GNU b/ACE/include/makeinclude/platform_g++_common.GNU index ec540074f2b..c339c7dd531 100644 --- a/ACE/include/makeinclude/platform_g++_common.GNU +++ b/ACE/include/makeinclude/platform_g++_common.GNU @@ -1,7 +1,44 @@ # -*- Makefile -*- # $Id$ -# -# Common file help turn on/off explicit template instantiation + +ifeq ($(insure),1) + CC = insure + CXX = insure +else + ifneq ($(CROSS_COMPILE),) + # Build using the cross-tools + CC = ${CROSS_COMPILE}gcc + CXX = ${CROSS_COMPILE}g++ + AR = ${CROSS_COMPILE}ar + # Cross-linker requires this for linked in shared libs that depend + # themselves on other shared libs (not directly linked in) + LDFLAGS += -Wl,-rpath-link,$(ACE_ROOT)/lib + ifneq (,$(HOST_ROOT)) + TAO_IDLFLAGS += -g $(HOST_ROOT)/bin/ace_gperf + TAO_IDL = $(HOST_ROOT)/bin/tao_idl + TAO_IDL_DEP = $(TAO_IDL) + TAO_IDL3_TO_IDL2 = $(HOST_ROOT)/TAO/CIAO/bin/tao_idl3_to_idl2 + TAO_IDL3_TO_IDL2_DEP = $(TAO_IDL3_TO_IDL2) + # make sure to use the target compiler, not the cross-compiler + # as preprocessor for the cross-compiled idl tools + TAO_IDL_PREPROCESSOR = gcc + endif + endif +endif + +ifneq ($(TCPU),) + ifeq ($(tunemodelflag),1) + FLAGS_C_CC += -mtune=$(TCPU) + endif + + ifeq ($(cpumodelflag),1) + FLAGS_C_CC += -mcpu=$(TCPU) + endif + + ifeq ($(archmodelflag),1) + FLAGS_C_CC += -march=$(TCPU) + endif +endif ifeq ($(CXX),insure) # insure does not pass through the -dumpversion option. |