toolchain: sync eglibc headers/build split with uclibc changes
[openwrt/openwrt.git] / toolchain / eglibc / Makefile
1 PATH_PREFIX := .
2 VARIANT:=final
3
4 include ./common.mk
5
6 define Host/Compile
7 $(MAKE) -C $(CUR_BUILD_DIR) all
8 endef
9
10 define 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 )
24 endef
25
26 $(eval $(call HostBuild))