Changes for cross builds.

This commit is contained in:
Janet B. Anderson
2005-09-15 17:50:44 +00:00
parent 50bc375aa5
commit 7252572480
5 changed files with 6 additions and 22 deletions

View File

@@ -26,6 +26,9 @@ export GCC_EXEC_PREFIX = $(GNU_LIB)/gcc-lib/
CROSS_INCLUDES = $(addprefix -I,$(GNU_TARGET_INCLUDE_DIR))
CROSS_LDFLAGS = $(addprefix -L,$(GNU_TARGET_LIB_DIR))
CMPLR_PREFIX_CROSS=$(addsuffix -,$(GNU_TARGET))
CMPLR_PREFIX=$(CMPLR_PREFIX_$(BUILD_CLASSS))
# All cross builds use the gnu compiler
include $(CONFIG)/CONFIG.gnuCommon

View File

@@ -28,8 +28,4 @@ empty:= # trick from the make docs...
space:= $(empty) $(empty)
RUNTIME_LDFLAGS = -Wl,+b$(subst $(space),:,$(sort $(SHRLIB_SEARCH_FULLPATHDIRS))),+s
ifeq ($(BUILD_CLASS),CROSS)
GNU_TARGET=parisc-hp-unix
CMPLR_SUFFIX=
CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
endif
GNU_TARGET=parisc-hp-unix

View File

@@ -24,9 +24,3 @@ ARCH_DEP_CPPFLAGS += -D_X86_
RUNTIME_LDFLAGS += $(RUNTIME_LDFLAGS_$(SHARED_LIBRARIES))
ifeq ($(BUILD_CLASS),CROSS)
GNU_TARGET=i586-pc-linux-gnu
CMPLR_SUFFIX=
CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
endif

View File

@@ -31,12 +31,7 @@ OP_SYS_LDFLAGS += $(COMPILER_LDFLAGS)
RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_FULLPATHDIRS:%=-R%)
RUNTIME_LDFLAGS += $(RUNTIME_LDFLAGS_$(COMMANDLINE_LIBRARY))
ifeq ($(BUILD_CLASS),CROSS)
GNU_TARGET=sparc-sun-solaris2
CMPLR_SUFFIX=
CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
endif
GNU_TARGET=sparc-sun-solaris2
OP_SYS_LDLIBS += -lsocket -lnsl
OP_SYS_LDLIBS_8 += -lCrun -lc -lCstd

View File

@@ -32,11 +32,7 @@ ARCH_DEP_CPPFLAGS = -D_X86_
RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_FULLPATHDIRS:%=-R%)
RUNTIME_LDFLAGS += $(RUNTIME_LDFLAGS_$(COMMANDLINE_LIBRARY))
ifeq ($(BUILD_CLASS),CROSS)
GNU_TARGET=x86-sun-solaris2
CMPLR_SUFFIX=
CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET))
endif
GNU_TARGET=x86-sun-solaris2
OP_SYS_LDLIBS += -lsocket -lnsl
OP_SYS_LDLIBS_8 += -lCrun -lc -lCstd