Root/toolchain/eglibc/Makefile

1PATH_PREFIX := .
2VARIANT:=final
3
4include ./common.mk
5
6define Host/Compile
7    $(MAKE) -C $(CUR_BUILD_DIR) all
8endef
9
10define Host/Install
11    $(call Host/SetToolchainInfo)
12    $(MAKE) -C $(CUR_BUILD_DIR) \
13        install_root="$(TOOLCHAIN_DIR)" \
14        install
15    ( cd $(TOOLCHAIN_DIR) ; \
16        for d in lib usr/lib ; do \
17          for f in libc.so libpthread.so libgcc_s.so ; do \
18            if [ -f $$$$d/$$$$f -a ! -L $$$$d/$$$$f ] ; then \
19              $(SED) 's,/usr/lib/,,g;s,/lib/,,g' $$$$d/$$$$f ; \
20            fi \
21          done \
22        done \
23    )
24endef
25
26$(eval $(call HostBuild))
27

Archive Download this file



interactive