# -*-makefile-*- # # Copyright (C) 2006 by Robert Schwebel # 2013 by Michael Olbrich # # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions # see the README file. # # # We provide this package # PACKAGES-$(PTXCONF_GLIBC_CRT) += glibc-crt # # Paths and names # GLIBC_CRT_DIR = $(BUILDDIR)/$(GLIBC)-crt-build # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- GLIBC_CRT_PATH := PATH=$(CROSS_PATH) GLIBC_CRT_ENV := \ BUILD_CC=$(HOSTCC) \ \ ac_cv_path_GREP=grep \ ac_cv_sizeof_long_double=$(PTXCONF_SIZEOF_LONG_DOUBLE) \ libc_cv_c_cleanup=yes \ libc_cv_forced_unwind=yes \ libc_cv_slibdir='/lib' # # autoconf # GLIBC_CRT_CONF_TOOL := autoconf GLIBC_CRT_CONF_OPT = $(GLIBC_CONF_OPT) GLIBC_CRT_MAKE_OPT := csu/subdir_lib $(STATEDIR)/glibc-crt.prepare: $(STATEDIR)/glibc.extract @$(call targetinfo) @$(call clean, $(GLIBC_CRT_DIR)) mkdir -p $(GLIBC_CRT_DIR) cd $(GLIBC_CRT_DIR) && \ $(GLIBC_CRT_PATH) $(GLIBC_CRT_ENV) \ $(GLIBC_DIR)/configure $(GLIBC_CRT_CONF_OPT) @$(call touch) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- $(STATEDIR)/glibc-crt.install: @$(call targetinfo) mkdir -p $(SYSROOT)/usr/lib for file in {S,}crt1.o crt{i,n}.o; do \ $(INSTALL) -m 644 $(GLIBC_CRT_DIR)/csu/$$file \ $(SYSROOT)/usr/lib/$$file || exit 1; \ done @$(call touch) # vim: syntax=make