summaryrefslogtreecommitdiff
path: root/ACE/include
diff options
context:
space:
mode:
authormcorino <mcorino@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-11-30 10:12:26 +0000
committermcorino <mcorino@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2009-11-30 10:12:26 +0000
commit0173dd783107327701bcf6d8203add8cfabc6b1a (patch)
treecdda7d858c3c806be0bedc1ffd676cfb6fb7109b /ACE/include
parente6cc67104d57669f906094582911e63de87028e5 (diff)
downloadATCD-0173dd783107327701bcf6d8203add8cfabc6b1a.tar.gz
Mon Nov 30 10:08:00 UTC 2009 Martin Corino <mcorino@remedy.nl>
Diffstat (limited to 'ACE/include')
-rw-r--r--ACE/include/makeinclude/platform_linux_common.GNU20
1 files changed, 20 insertions, 0 deletions
diff --git a/ACE/include/makeinclude/platform_linux_common.GNU b/ACE/include/makeinclude/platform_linux_common.GNU
index 8a19abcdde1..06d58031f97 100644
--- a/ACE/include/makeinclude/platform_linux_common.GNU
+++ b/ACE/include/makeinclude/platform_linux_common.GNU
@@ -118,6 +118,26 @@ SYSARCH := $(shell uname -m)
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_IDL3_TO_IDL2 = $(HOST_ROOT)/bin/tao_idl3_to_idl2
+ TAO_IDL_DEP = $(TAO_IDL)
+ 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
PIC = -fPIC