X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=lfs%2Fglibc;h=4530f2ddd6c3581ee8516401f404e07591419433;hp=5f15ecf8ceca2a33876bf5b36edb23dda387fc30;hb=9f52e35066b3fa8603e85784b7ede0532afc66e6;hpb=65ca3f05075a11e2bce7daef5980f9bb4715ae84 diff --git a/lfs/glibc b/lfs/glibc index 5f15ecf8ce..4530f2ddd6 100644 --- a/lfs/glibc +++ b/lfs/glibc @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2016 IPFire Team # +# Copyright (C) 2007-2018 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -24,14 +24,14 @@ include Config -VER = 2.25 +VER = 2.28 THISAPP = glibc-$(VER) -DL_FILE = $(THISAPP).tar.gz +DL_FILE = $(THISAPP).tar.xz DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) -# Normal build or /tools build. +# Normal build or $(TOOLS_DIR) build. # ifeq "$(ROOT)" "" TARGET = $(DIR_INFO)/$(THISAPP) @@ -45,8 +45,8 @@ else EXTRA_CONFIG = \ --host=$(CROSSTARGET) \ --build=$(BUILDTARGET) \ - --prefix=/tools \ - --with-headers=/tools/include \ + --prefix=$(TOOLS_DIR) \ + --with-headers=$(TOOLS_DIR)/include \ libc_cv_forced_unwind=yes \ libc_cv_c_cleanup=yes endif @@ -59,7 +59,11 @@ ifeq "$(BUILD_ARCH)" "armv7hl" endif ifeq "$(BUILD_ARCH)" "i586" - CFLAGS += -march=i586 -mtune=generic -mno-tls-direct-seg-refs + CFLAGS += -march=i586 -mtune=generic -mindirect-branch=thunk -mfunction-return=thunk -mno-tls-direct-seg-refs +endif + +ifeq "$(BUILD_ARCH)" "x86_64" + CFLAGS += -mindirect-branch=thunk -mfunction-return=thunk endif # Disable hardware FP for armv5tel @@ -76,7 +80,10 @@ EXTRA_CONFIG += \ --enable-add-ons \ --without-selinux \ --enable-experimental-malloc \ - --enable-bind-now + --enable-bind-now \ + --enable-obsolete-rpc \ + --enable-obsolete-nsl \ + --disable-nss-crypt ############################################################################### # Top-level Rules @@ -86,7 +93,7 @@ objects = $(DL_FILE) $(DL_FILE) = $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = 0c9f827298841dbf3bff3060f3d7f19c +$(DL_FILE)_MD5 = c81d2388896379997bc359d4f2084239 install : $(TARGET) @@ -118,6 +125,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @rm -rf $(DIR_APP) $(DIR_SRC)/glibc-build && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) @mkdir $(DIR_SRC)/glibc-build + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/glibc-localedef-no-archive.patch + ifneq "$(TOOLCHAIN)" "1" ifeq "$(BUILD_ARCH)" "x86_64" cd $(DIR_APP) && sed -i 's|libs -o|libs -L/usr/lib64 -Wl,-dynamic-linker=/lib64/ld-linux-x86-64.so.2 -o|' \ @@ -142,6 +151,8 @@ endif cd $(DIR_SRC)/glibc-build && make PARALLELMFLAGS=$(MAKETUNING) \ CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" + cd $(DIR_APP) && sed '/test-installation/s@\$$(PERL)@echo not running@' -i Makefile + cd $(DIR_SRC)/glibc-build && make install ifneq "$(TOOLCHAIN)" "1" @@ -158,8 +169,8 @@ ifeq "$(TOOLCHAIN)" "1" cd $(DIR_APP) && echo "int main() { return 0; }" > dummy.c cd $(DIR_APP) && $(CROSSTARGET)-gcc dummy.c -o dummy - # Must be using a runtime linker from /tools - cd $(DIR_APP) && readelf -l dummy | grep "Requesting program interpreter: /tools" + # Must be using a runtime linker from $(TOOLS_DIR) + cd $(DIR_APP) && readelf -l dummy | grep "Requesting program interpreter: $(TOOLS_DIR)" cd $(DIR_APP) && rm -vf dummy dummy.c endif