# -*-makefile-*- # # Copyright (C) 2006 by Robert Schwebel # 2013 by Michael Olbrich # # 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_VERSION := $(call remove_quotes,$(PTXCONF_GLIBC_VERSION)) GLIBC_CRT_MD5 := $(call remove_quotes,$(PTXCONF_GLIBC_MD5)) GLIBC_CRT := glibc-$(GLIBC_CRT_VERSION) GLIBC_CRT_SUFFIX := tar.bz2 GLIBC_CRT_SOURCE := $(SRCDIR)/$(GLIBC_CRT).$(GLIBC_CRT_SUFFIX) GLIBC_CRT_DIR := $(BUILDDIR)/glibc-crt-$(GLIBC_CRT_VERSION) GLIBC_CRT_BUILDDIR := $(GLIBC_CRT_DIR)-build GLIBC_CRT_URL = $(GLIBC_URL) GLIBC_CRT_BUILD_OOT := YES GLIBC_CRT_LICENSE := ignore # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- GLIBC_CRT_PATH := PATH=$(CROSS_PATH) GLIBC_CRT_ENV := \ CC="$(CROSS_CC) -fuse-ld=bfd" \ BUILD_CC=$(HOSTCC) \ $(GLIBC_FLAGS_ENV) \ \ 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 # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- $(STATEDIR)/glibc-crt.install: @$(call targetinfo) @mkdir -vp $(SYSROOT)/usr/lib @for file in {S,}crt1.o crt{i,n}.o; do \ $(INSTALL) -v -m 644 $(GLIBC_CRT_BUILDDIR)/csu/$$file \ $(SYSROOT)/usr/lib/$$file || exit 1; \ done @$(call touch) # vim: syntax=make