glibc: update to version 2.25
[openwrt/openwrt.git] / toolchain / glibc / Makefile
1 PATH_PREFIX := .
2 VARIANT:=final
3 HOST_BUILD_PARALLEL:=1
4
5 include ./common.mk
6
7 define Host/Compile
8 +$(MAKE) -C $(CUR_BUILD_DIR) \
9 PARALLELMFLAGS="$(HOST_JOBS)" \
10 BUILD_CFLAGS="$(HOST_CFLAGS)" \
11 default-rpath="/lib:/usr/lib" \
12 all
13 endef
14
15 define Host/Install
16 $(call Host/SetToolchainInfo)
17 $(MAKE) -C $(CUR_BUILD_DIR) \
18 BUILD_CFLAGS="$(HOST_CFLAGS)" \
19 install_root="$(TOOLCHAIN_DIR)" \
20 install
21 ( cd $(TOOLCHAIN_DIR) ; \
22 for d in lib usr/lib ; do \
23 for f in libc.so libpthread.so libgcc_s.so ; do \
24 if [ -f $$$$d/$$$$f -a ! -L $$$$d/$$$$f ] ; then \
25 $(SED) 's,/usr/lib/,,g;s,/lib/,,g' $$$$d/$$$$f ; \
26 fi \
27 done \
28 done \
29 )
30 endef
31
32 $(eval $(call HostBuild))