From: Michael Tremer Date: Tue, 25 Apr 2017 10:26:50 +0000 (+0100) Subject: glibc: Test toolchain after build X-Git-Tag: v2.19-core112~122 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe2adb0cdf030b3a94369c8268e09e0900782883;p=people%2Fstevee%2Fipfire-2.x.git glibc: Test toolchain after build Signed-off-by: Michael Tremer --- diff --git a/lfs/glibc b/lfs/glibc index 4b69f18d48..5cdb27b988 100644 --- a/lfs/glibc +++ b/lfs/glibc @@ -152,5 +152,15 @@ ifneq "$(TOOLCHAIN)" "1" rm -rfv /usr/share/zoneinfo endif +ifeq "$(TOOLCHAIN)" "1" + # Test the linker in toolchain + 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" + cd $(DIR_APP) && rm -vf dummy dummy.c +endif + @rm -rf $(DIR_APP) $(DIR_SRC)/glibc-build @$(POSTBUILD)