| lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 |  | 
 | 2 | #include $(COMMON_BASE_MK) | 
 | 3 |  | 
 | 4 | NAME=glibc | 
| xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame] | 5 | SRC_DIR=$(LIBC_VERSION) | 
| lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 6 | INSTALL_DIR=$(STAGEDIR)/libc | 
 | 7 | BUILD_DIR=build | 
 | 8 | GEN_MAKEFILE=$(BUILD_DIR)/Makefile | 
 | 9 |  | 
 | 10 | CONFIG_OPTS = --target=arm-linux --host=arm-linux | 
 | 11 | CONFIG_OPTS += --enable-kernel=3.4.0 | 
 | 12 | CONFIG_OPTS += ac_cv_path_BASH_SHELL=/bin/bash | 
 | 13 | CONFIG_OPTS += libc_cv_forced_unwind=yes | 
 | 14 | CONFIG_OPTS += libc_cv_ssp=no | 
 | 15 | CONFIG_OPTS += --enable-shared | 
 | 16 | CONFIG_OPTS += --without-fp | 
 | 17 | CONFIG_OPTS += --without-cvs | 
 | 18 | CONFIG_OPTS += --disable-profile | 
 | 19 | CONFIG_OPTS += --without-gd | 
 | 20 | CONFIG_OPTS += --enable-obsolete-rpc | 
 | 21 | CONFIG_OPTS += --with-headers=$(STAGEDIR)/include  | 
 | 22 |  | 
 | 23 | #CONFIG_OPTS = --static | 
 | 24 |  | 
 | 25 |  | 
 | 26 | all: $(GEN_MAKEFILE) | 
 | 27 | 	-make -C build all | 
| xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame] | 28 | 	cp -v  shlib.lds  build/shlib.lds | 
| lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 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 |  | 
 | 37 | clean: | 
 | 38 | 	-rm -fr $(BUILD_DIR) | 
 | 39 |  |