X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2Fglibc;h=1fd7b6ae1bdac228238637c0d6939b8f902c3b9c;hb=e270efadd5d3495b41479c4ae16a429d8667d985;hp=122aca58fdd6b6927770d3473be865a7ceb65260;hpb=15a2c03f5d1a71c17ab3befc720843065eb02a14;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/lfs/glibc b/lfs/glibc index 122aca58fd..1fd7b6ae1b 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.27 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 = 898cd5656519ffbc3a03fe811dd89e82 install : $(TARGET) @@ -144,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" @@ -160,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