提交 00fc2a3b 编写于 作者: D dholmes

7200065: Cross-compilation changes to support the new-build

Reviewed-by: dholmes, ohair
Contributed-by: NFredrik Ohrstrom <fredrik.ohrstrom@oracle.com>
上级 40e7f13c
...@@ -109,7 +109,7 @@ all: $(EXEC) ...@@ -109,7 +109,7 @@ all: $(EXEC)
$(EXEC) : $(OBJECTS) $(EXEC) : $(OBJECTS)
@echo Making adlc @echo Making adlc
$(QUIETLY) $(HOST.LINK_NOPROF.CXX) -o $(EXEC) $(OBJECTS) $(QUIETLY) $(filter-out $(ARCHFLAG),$(HOST.LINK_NOPROF.CXX)) -o $(EXEC) $(OBJECTS)
# Random dependencies: # Random dependencies:
$(OBJECTS): opcodes.hpp classes.hpp adlc.hpp adlcVMDeps.hpp adlparse.hpp archDesc.hpp arena.hpp dict2.hpp filebuff.hpp forms.hpp formsopt.hpp formssel.hpp $(OBJECTS): opcodes.hpp classes.hpp adlc.hpp adlcVMDeps.hpp adlparse.hpp archDesc.hpp arena.hpp dict2.hpp filebuff.hpp forms.hpp formsopt.hpp formssel.hpp
...@@ -213,14 +213,14 @@ PROCESS_AD_FILES = awk '{ \ ...@@ -213,14 +213,14 @@ PROCESS_AD_FILES = awk '{ \
$(OUTDIR)/%.o: %.cpp $(OUTDIR)/%.o: %.cpp
@echo Compiling $< @echo Compiling $<
$(QUIETLY) $(REMOVE_TARGET) $(QUIETLY) $(REMOVE_TARGET)
$(QUIETLY) $(HOST.COMPILE.CXX) -o $@ $< $(COMPILE_DONE) $(QUIETLY) $(filter-out $(ARCHFLAG),$(HOST.COMPILE.CXX)) -o $@ $< $(COMPILE_DONE)
# Some object files are given a prefix, to disambiguate # Some object files are given a prefix, to disambiguate
# them from objects of the same name built for the VM. # them from objects of the same name built for the VM.
$(OUTDIR)/adlc-%.o: %.cpp $(OUTDIR)/adlc-%.o: %.cpp
@echo Compiling $< @echo Compiling $<
$(QUIETLY) $(REMOVE_TARGET) $(QUIETLY) $(REMOVE_TARGET)
$(QUIETLY) $(HOST.COMPILE.CXX) -o $@ $< $(COMPILE_DONE) $(QUIETLY) $(filter-out $(ARCHFLAG),$(HOST.COMPILE.CXX)) -o $@ $< $(COMPILE_DONE)
# ######################################################################### # #########################################################################
......
...@@ -29,8 +29,14 @@ ...@@ -29,8 +29,14 @@
SLASH_JAVA ?= /java SLASH_JAVA ?= /java
# Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name # Need PLATFORM (os-arch combo names) for jdk and hotspot, plus libarch name
ARCH:=$(shell uname -m)
PATH_SEP = : # ARCH can be set explicitly in spec.gmk
ifndef ARCH
ARCH := $(shell uname -m)
endif
PATH_SEP ?= :
ifeq ($(LP64), 1) ifeq ($(LP64), 1)
ARCH_DATA_MODEL ?= 64 ARCH_DATA_MODEL ?= 64
else else
...@@ -72,8 +78,8 @@ ifeq ($(ARCH), sparc64) ...@@ -72,8 +78,8 @@ ifeq ($(ARCH), sparc64)
HS_ARCH = sparc HS_ARCH = sparc
endif endif
# x86_64 # amd64/x86_64
ifeq ($(ARCH), x86_64) ifneq (,$(findstring $(ARCH), amd64 x86_64))
ifeq ($(ARCH_DATA_MODEL), 64) ifeq ($(ARCH_DATA_MODEL), 64)
ARCH_DATA_MODEL = 64 ARCH_DATA_MODEL = 64
MAKE_ARGS += LP64=1 MAKE_ARGS += LP64=1
...@@ -90,8 +96,8 @@ ifeq ($(ARCH), x86_64) ...@@ -90,8 +96,8 @@ ifeq ($(ARCH), x86_64)
endif endif
endif endif
# i686 # i686/i586 ie 32-bit x86
ifeq ($(ARCH), i686) ifneq (,$(findstring $(ARCH), i686 i586))
ARCH_DATA_MODEL = 32 ARCH_DATA_MODEL = 32
PLATFORM = linux-i586 PLATFORM = linux-i586
VM_PLATFORM = linux_i486 VM_PLATFORM = linux_i486
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册