blob: e1882ba207c23f49dbe084e140b61758564b89b0 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001
2#include $(COMMON_BASE_MK)
3
4NAME=glibc
xf.libdd93d52023-05-12 07:10:14 -07005SRC_DIR=$(LIBC_VERSION)
lh9ed821d2023-04-07 01:36:19 -07006INSTALL_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
xf.libdd93d52023-05-12 07:10:14 -070028 cp -v shlib.lds build/shlib.lds
lh9ed821d2023-04-07 01:36:19 -070029 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