From: Arne Fitzenreiter Date: Wed, 24 Dec 2008 23:35:53 +0000 (+0100) Subject: Fix glibc build for different targets X-Git-Tag: v3.0-alpha1~328^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=231c3fbacbdeecb3ec3a455e419854d2b7727fea;p=ipfire-3.x.git Fix glibc build for different targets Add a patch that glibc can compiled for other targets than i686 --- diff --git a/lfs/glibc b/lfs/glibc index fcd38a432..2360db6c3 100644 --- a/lfs/glibc +++ b/lfs/glibc @@ -51,7 +51,8 @@ objects = $(DL_FILE) \ $(THISAPP)-mktemp_urandom.patch \ $(THISAPP)-res_randomid.patch \ $(THISAPP)-resolv_response_length.patch \ - $(THISAPP)-undefine-__i686.patch + $(THISAPP)-undefine-__i686.patch \ + $(THISAPP)-d_tlsdec.patch install : $(OBJECT) @@ -163,6 +164,9 @@ ifeq "$(MACHINE)" "i686" cd $(DIR_APP) && patch -Np0 -i $(DIR_PATCHES)/$(THISAPP)-undefine-__i686.patch endif + # Replace a direct call of a i686 function (Not able to compile at i586) + cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-d_tlsdec.patch + # --sbindir=$(TOOLS_DIR)/bin does not work... anyone want to fix this? # We don't need Glibc's sbin programs, but still. @@ -184,6 +188,7 @@ ifeq "$(STAGE)" "toolchain" cd $(DIR_SRC)/glibc-build && \ ../$(THISAPP)/configure \ --prefix=$(TOOLS_DIR) \ + --target=$(IFS_TARGET) \ --libexecdir=$(TOOLS_DIR)/lib/$(PKG_NAME) \ --with-headers=$(TOOLS_DIR)/include \ --with-binutils=$(TOOLS_DIR)/bin \ @@ -205,6 +210,7 @@ ifeq "$(STAGE)" "base" cd $(DIR_SRC)/glibc-build && \ ../$(THISAPP)/configure \ + $(CONFIGURE_ARCH) \ --prefix=/usr \ --libexecdir=/usr/lib/glibc \ --disable-profile \