eglibc: add version 2.19

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 39742
owl
Felix Fietkau 2014-02-24 15:35:07 +00:00
parent c01d211259
commit f354297fa9
7 changed files with 85 additions and 2 deletions

View File

@ -17,6 +17,10 @@ choice
bool "eglibc 2.17" bool "eglibc 2.17"
select EGLIBC_VERSION_2_17 select EGLIBC_VERSION_2_17
config EGLIBC_USE_VERSION_2_19
bool "eglibc 2.19"
select EGLIBC_VERSION_2_19
endchoice endchoice
config EGLIBC_REVISION config EGLIBC_REVISION
@ -25,6 +29,7 @@ config EGLIBC_REVISION
default "18909" if EGLIBC_VERSION_2_15 default "18909" if EGLIBC_VERSION_2_15
default "21110" if EGLIBC_VERSION_2_16 default "21110" if EGLIBC_VERSION_2_16
default "22243" if EGLIBC_VERSION_2_17 default "22243" if EGLIBC_VERSION_2_17
default "25243" if EGLIBC_VERSION_2_19
default "" default ""
menu "eglibc configuration" menu "eglibc configuration"

View File

@ -5,6 +5,7 @@ config EGLIBC_VERSION
default "2.15" if EGLIBC_VERSION_2_15 default "2.15" if EGLIBC_VERSION_2_15
default "2.16" if EGLIBC_VERSION_2_16 default "2.16" if EGLIBC_VERSION_2_16
default "2.17" if EGLIBC_VERSION_2_17 default "2.17" if EGLIBC_VERSION_2_17
default "2.19" if EGLIBC_VERSION_2_19
config EGLIBC_VERSION_2_15 config EGLIBC_VERSION_2_15
default y if !TOOLCHAINOPTS default y if !TOOLCHAINOPTS
@ -16,4 +17,7 @@ config EGLIBC_VERSION_2_16
config EGLIBC_VERSION_2_17 config EGLIBC_VERSION_2_17
bool bool
config EGLIBC_VERSION_2_19
bool
endif endif

View File

@ -5,12 +5,16 @@ HOST_BUILD_PARALLEL:=1
include ./common.mk include ./common.mk
define Host/Compile 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 endef
define Host/Install define Host/Install
$(call Host/SetToolchainInfo) $(call Host/SetToolchainInfo)
$(MAKE) -C $(CUR_BUILD_DIR) \ $(MAKE) -C $(CUR_BUILD_DIR) \
BUILD_CFLAGS="$(HOST_CFLAGS)" \
install_root="$(TOOLCHAIN_DIR)" \ install_root="$(TOOLCHAIN_DIR)" \
install install
( cd $(TOOLCHAIN_DIR) ; \ ( cd $(TOOLCHAIN_DIR) ; \

View File

@ -24,6 +24,9 @@ endif
ifneq ($(CONFIG_EGLIBC_VERSION_2_17),) ifneq ($(CONFIG_EGLIBC_VERSION_2_17),)
PKG_SOURCE_URL:=svn://svn.eglibc.org/branches/eglibc-2_17 PKG_SOURCE_URL:=svn://svn.eglibc.org/branches/eglibc-2_17
endif 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) PATCH_DIR:=$(PATH_PREFIX)/patches/$(PKG_VERSION)
@ -83,7 +86,7 @@ define Host/Prepare
$(call Host/Prepare/Default) $(call Host/Prepare/Default)
ln -snf $(PKG_SOURCE_SUBDIR) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME) ln -snf $(PKG_SOURCE_SUBDIR) $(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)
$(SED) 's,y,n,' $(HOST_BUILD_DIR)/libc/option-groups.defaults $(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/ ln -sf ../ports $(HOST_BUILD_DIR)/libc/
endif endif
endef endef

View File

@ -11,6 +11,7 @@ define Host/Install
$(call Host/SetToolchainInfo) $(call Host/SetToolchainInfo)
mkdir -p $(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev/{include,lib} mkdir -p $(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev/{include,lib}
$(MAKE) -C $(CUR_BUILD_DIR) \ $(MAKE) -C $(CUR_BUILD_DIR) \
BUILD_CFLAGS="$(HOST_CFLAGS)" \
install_root="$(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev" \ install_root="$(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev" \
install-bootstrap-headers=yes \ install-bootstrap-headers=yes \
install-headers install-headers

View File

@ -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);
}

View File

@ -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)