glibc: Test toolchain after build

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2017-04-25 11:26:50 +01:00
parent b45e371ff7
commit fe2adb0cdf

View File

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