diff --git a/configure/os/CONFIG.Common.linux-arm b/configure/os/CONFIG.Common.linux-arm new file mode 100644 index 000000000..49324b5c3 --- /dev/null +++ b/configure/os/CONFIG.Common.linux-arm @@ -0,0 +1,27 @@ +# CONFIG.Common.linux-arm +# +# This file is maintained by the build community. +# +# Definitions for linux-arm target builds +# Sites may override these definitions in CONFIG_SITE.Common.linux-arm +#------------------------------------------------------- + +# Include definitions common to all Unix targets +include $(CONFIG)/os/CONFIG.Common.linuxCommon + +ARCH_CLASS = arm + +# Set a special definition for network order of Netwinder ARM floating point +ARCH_DEP_CPPFLAGS += -D_ARM_NWFP_ + +# Set runtime path for shared libraries +#RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_DIRS:%=-Wl,-rpath,%) +RUNTIME_LDFLAGS = $(SHRLIB_SEARCH_DIRS:%=-Wl,-rpath-link,%) + +ifdef CROSS + GNU_TARGET=arm-linux + # prefix of compiler tools + CMPLR_SUFFIX= + CMPLR_PREFIX=$(addsuffix -,$(GNU_TARGET)) +endif + diff --git a/configure/os/CONFIG.linux-x86.linux-arm b/configure/os/CONFIG.linux-x86.linux-arm new file mode 100644 index 000000000..82bdf639d --- /dev/null +++ b/configure/os/CONFIG.linux-x86.linux-arm @@ -0,0 +1,23 @@ +# CONFIG.linux-x86.linux-arm +# +# Definitions for linux-x86 host - linux-arm target builds +# Sites may override these definitions in CONFIG_SITE.linux-x86.linux-arm +#------------------------------------------------------- + +# Include common gnu compiler definitions +include $(CONFIG)/CONFIG.gnuCommon + +GNU_DIR = /usr + +# Override the -nostdinc flag, needed here... +CROSS_CPPFLAGS = + +# Copied from x86.x86 +STATIC_LDFLAGS_YES= -Wl,-Bstatic +STATIC_LDFLAGS_NO= +STATIC_LDLIBS_YES= -Wl,-Bdynamic +STATIC_LDLIBS_NO= + +SHRLIB_LDFLAGS += -shared -fPIC +LOADABLE_SHRLIB_LDFLAGS = -shared -fPIC + diff --git a/configure/os/CONFIG_SITE.linux-x86.linux-arm b/configure/os/CONFIG_SITE.linux-x86.linux-arm new file mode 100644 index 000000000..8b7364744 --- /dev/null +++ b/configure/os/CONFIG_SITE.linux-x86.linux-arm @@ -0,0 +1,8 @@ +# CONFIG_SITE.linux-x86.linux-arm +# +# $Id$ +# +# Site specific definitions for linux-x86 host - linux-arm target builds +#------------------------------------------------------- + +#GNU_DIR = /home/targetOS/linux-arm/host/x86-linux/gcc_3.3.3