diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2014-02-24 15:35:07 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2014-02-24 15:35:07 +0000 |
commit | 06a4c97965be503c931781daca999b0c00209de7 (patch) | |
tree | 9f9191e6fadaa1bbc3b2bca26e3fa98c0cb8146b /toolchain | |
parent | ca2185dc4be60657a9073c2cb14de0d3f109c41d (diff) |
eglibc: add version 2.19
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39742 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/eglibc/Config.in | 5 | ||||
-rw-r--r-- | toolchain/eglibc/Config.version | 4 | ||||
-rw-r--r-- | toolchain/eglibc/Makefile | 6 | ||||
-rw-r--r-- | toolchain/eglibc/common.mk | 5 | ||||
-rw-r--r-- | toolchain/eglibc/headers/Makefile | 1 | ||||
-rw-r--r-- | toolchain/eglibc/patches/2.19/100-fix_cross_rpcgen.patch | 52 | ||||
-rw-r--r-- | toolchain/eglibc/patches/2.19/200-add-dl-search-paths.patch | 14 |
7 files changed, 85 insertions, 2 deletions
diff --git a/toolchain/eglibc/Config.in b/toolchain/eglibc/Config.in index 791033662a..4b956bcb89 100644 --- a/toolchain/eglibc/Config.in +++ b/toolchain/eglibc/Config.in @@ -17,6 +17,10 @@ choice bool "eglibc 2.17" select EGLIBC_VERSION_2_17 + config EGLIBC_USE_VERSION_2_19 + bool "eglibc 2.19" + select EGLIBC_VERSION_2_19 + endchoice config EGLIBC_REVISION @@ -25,6 +29,7 @@ config EGLIBC_REVISION default "18909" if EGLIBC_VERSION_2_15 default "21110" if EGLIBC_VERSION_2_16 default "22243" if EGLIBC_VERSION_2_17 + default "25243" if EGLIBC_VERSION_2_19 default "" menu "eglibc configuration" diff --git a/toolchain/eglibc/Config.version b/toolchain/eglibc/Config.version index a383bb211d..46d9b2e5e6 100644 --- a/toolchain/eglibc/Config.version +++ b/toolchain/eglibc/Config.version @@ -5,6 +5,7 @@ config EGLIBC_VERSION default "2.15" if EGLIBC_VERSION_2_15 default "2.16" if EGLIBC_VERSION_2_16 default "2.17" if EGLIBC_VERSION_2_17 + default "2.19" if EGLIBC_VERSION_2_19 config EGLIBC_VERSION_2_15 default y if !TOOLCHAINOPTS @@ -16,4 +17,7 @@ config EGLIBC_VERSION_2_16 config EGLIBC_VERSION_2_17 bool +config EGLIBC_VERSION_2_19 + bool + endif diff --git a/toolchain/eglibc/Makefile b/toolchain/eglibc/Makefile index 429ed3036b..774500a46d 100644 --- a/toolchain/eglibc/Makefile +++ b/toolchain/eglibc/Makefile @@ -5,12 +5,16 @@ HOST_BUILD_PARALLEL:=1 include ./common.mk define Host/Compile - $(MAKE) -C $(CUR_BUILD_DIR) all PARALLELMFLAGS="$(HOST_JOBS)" + $(MAKE) -C $(CUR_BUILD_DIR) \ + PARALLELMFLAGS="$(HOST_JOBS)" \ + BUILD_CFLAGS="$(HOST_CFLAGS)" \ + all endef define Host/Install $(call Host/SetToolchainInfo) $(MAKE) -C $(CUR_BUILD_DIR) \ + BUILD_CFLAGS="$(HOST_CFLAGS)" \ install_root="$(TOOLCHAIN_DIR)" \ install ( cd $(TOOLCHAIN_DIR) ; \ diff --git a/toolchain/eglibc/common.mk b/toolchain/eglibc/common.mk index 483f57db82..d54e09881f 100644 --- a/toolchain/eglibc/common.mk +++ b/toolchain/eglibc/common.mk @@ -24,6 +24,9 @@ endif ifneq ($(CONFIG_EGLIBC_VERSION_2_17),) PKG_SOURCE_URL:=svn://svn.eglibc.org/branches/eglibc-2_17 endif +ifneq ($(CONFIG_EGLIBC_VERSION_2_19),) + PKG_SOURCE_URL:=svn://svn.eglibc.org/branches/eglibc-2_19 +endif PATCH_DIR:=$(PATH_PREFIX)/patches/$(PKG_VERSION) @@ -83,7 +86,7 @@ define Host/Prepare $(call Host/Prepare/Default) ln -snf $(PKG_SOURCE_SUBDIR) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME) $(SED) 's,y,n,' $(HOST_BUILD_DIR)/libc/option-groups.defaults -ifneq ($(CONFIG_EGLIBC_VERSION_2_17),y) +ifneq ($(CONFIG_EGLIBC_VERSION_2_15)$(CONFIG_EGLIBC_VERSION_2_16),) ln -sf ../ports $(HOST_BUILD_DIR)/libc/ endif endef diff --git a/toolchain/eglibc/headers/Makefile b/toolchain/eglibc/headers/Makefile index 69495c9bde..f9f411b1f0 100644 --- a/toolchain/eglibc/headers/Makefile +++ b/toolchain/eglibc/headers/Makefile @@ -11,6 +11,7 @@ define Host/Install $(call Host/SetToolchainInfo) mkdir -p $(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev/{include,lib} $(MAKE) -C $(CUR_BUILD_DIR) \ + BUILD_CFLAGS="$(HOST_CFLAGS)" \ install_root="$(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev" \ install-bootstrap-headers=yes \ install-headers diff --git a/toolchain/eglibc/patches/2.19/100-fix_cross_rpcgen.patch b/toolchain/eglibc/patches/2.19/100-fix_cross_rpcgen.patch new file mode 100644 index 0000000000..5c0d45b530 --- /dev/null +++ b/toolchain/eglibc/patches/2.19/100-fix_cross_rpcgen.patch @@ -0,0 +1,52 @@ +--- a/libc/sunrpc/rpc/types.h ++++ b/libc/sunrpc/rpc/types.h +@@ -75,18 +75,23 @@ typedef unsigned long rpcport_t; + #endif + + #ifndef __u_char_defined +-typedef __u_char u_char; +-typedef __u_short u_short; +-typedef __u_int u_int; +-typedef __u_long u_long; +-typedef __quad_t quad_t; +-typedef __u_quad_t u_quad_t; +-typedef __fsid_t fsid_t; ++typedef unsigned char u_char; ++typedef unsigned short u_short; ++typedef unsigned int u_int; ++typedef unsigned long u_long; ++#if __WORDSIZE == 64 ++typedef long int quad_t; ++typedef unsigned long int u_quad_t; ++#elif defined __GLIBC_HAVE_LONG_LONG ++typedef long long int quad_t; ++typedef unsigned long long int u_quad_t; ++#endif ++typedef u_quad_t fsid_t; + # define __u_char_defined + #endif +-#ifndef __daddr_t_defined +-typedef __daddr_t daddr_t; +-typedef __caddr_t caddr_t; ++#if !defined(__daddr_t_defined) && defined(linux) ++typedef long int daddr_t; ++typedef char *caddr_t; + # define __daddr_t_defined + #endif + +--- a/libc/sunrpc/rpc_main.c ++++ b/libc/sunrpc/rpc_main.c +@@ -958,9 +958,10 @@ mkfile_output (struct commandline *cmd) + abort (); + temp = rindex (cmd->infile, '.'); + cp = stpcpy (mkfilename, "Makefile."); +- if (temp != NULL) +- *((char *) stpncpy (cp, cmd->infile, temp - cmd->infile)) = '\0'; +- else ++ if (temp != NULL) { ++ strncpy(cp, cmd->infile, temp - cmd->infile); ++ cp[temp - cmd->infile - 1] = 0; ++ } else + stpcpy (cp, cmd->infile); + + } diff --git a/toolchain/eglibc/patches/2.19/200-add-dl-search-paths.patch b/toolchain/eglibc/patches/2.19/200-add-dl-search-paths.patch new file mode 100644 index 0000000000..fa192ca1cd --- /dev/null +++ b/toolchain/eglibc/patches/2.19/200-add-dl-search-paths.patch @@ -0,0 +1,14 @@ +add /usr/lib to default search path for the dynamic linker + +--- a/libc/Makeconfig ++++ b/libc/Makeconfig +@@ -501,6 +501,9 @@ else + default-rpath = $(libdir) + endif + ++# Add /usr/lib to default search path for the dynamic linker ++user-defined-trusted-dirs := /usr/lib ++ + ifndef link-extra-libs + link-extra-libs = $(LDLIBS-$(@F)) + link-extra-libs-static = $(link-extra-libs) |