blob: 31f6b5c928f2857e31fce7648bcd71163a0a4c35 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001
2#include $(COMMON_BASE_MK)
3
4NAME=glibc
5SRC_DIR=glibc-2.22
6INSTALL_DIR=$(STAGEDIR)/libc
7BUILD_DIR=build
8GEN_MAKEFILE=$(BUILD_DIR)/Makefile
9
10CONFIG_OPTS = --target=arm-linux --host=arm-linux
11CONFIG_OPTS += --enable-kernel=3.4.0
12CONFIG_OPTS += ac_cv_path_BASH_SHELL=/bin/bash
13CONFIG_OPTS += libc_cv_forced_unwind=yes
14CONFIG_OPTS += libc_cv_ssp=no
15CONFIG_OPTS += --enable-shared
16CONFIG_OPTS += --without-fp
17CONFIG_OPTS += --without-cvs
18CONFIG_OPTS += --disable-profile
19CONFIG_OPTS += --without-gd
20CONFIG_OPTS += --enable-obsolete-rpc
21CONFIG_OPTS += --with-headers=$(STAGEDIR)/include
22
23#CONFIG_OPTS = --static
24
25
26all: $(GEN_MAKEFILE)
27 -make -C build all
28 sed -i 's/__libc_subfreE(__st/__libc_subfreeres :/' build/shlib.lds
29 make -C build all
30 make -C build install
31
32$(GEN_MAKEFILE):
33 echo "zgp " $(LD_LIBRARY_PATH)
34 mkdir -p $(BUILD_DIR)
35 cd $(BUILD_DIR); ../$(SRC_DIR)/configure --prefix=$(INSTALL_DIR) $(CONFIG_OPTS)
36
37clean:
38 -rm -fr $(BUILD_DIR)
39