| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 | # This file is part of the OpenADK project. OpenADK is copyrighted# material, please see the LICENCE file in the top-level directory.include $(ADK_TOPDIR)/rules.mkinclude ../rules.mkinclude Makefile.incinclude ${ADK_TOPDIR}/mk/buildhlp.mkTARGET_CFLAGS:=		$(filter-out -ffast-math,$(TARGET_CFLAGS))TARGET_CFLAGS:=		$(filter-out -fno-asynchronous-unwind-tables,$(TARGET_CFLAGS))TARGET_CFLAGS:=		$(filter-out -fstack-protector-all,$(TARGET_CFLAGS))TARGET_LDFLAGS:=	$(filter-out -fstack-protector-all,$(TARGET_LDFLAGS))GLIBC_CONFOPTS:=	--build=$(GNU_HOST_NAME) \			--host=$(GNU_TARGET_NAME) \			--with-headers=$(STAGING_TARGET_DIR)/usr/include \			--disable-sanity-checks \			--disable-werror \			--disable-nls \			--disable-werror \			--without-cvs \			--disable-profile \			--disable-debug \			--without-gd \			--disable-nscd \			--with-__thread \			--with-tls \			--enable-kernel="2.6.32" \			--enable-add-onsifeq ($(ADK_TARGET_FLOAT),soft)GLIBC_CONFOPTS+=	--without-fpendififeq ($(ADK_TARGET_FLOAT),hard)GLIBC_CONFOPTS+=	--with-fpendifGLIBC_ENV:=             PATH='${TARGET_PATH}' \			CONFIG_SHELL='$(strip ${SHELL})' \                        BUILD_CC=${CC_FOR_BUILD} \                        CFLAGS="$(TARGET_CFLAGS)" \                        CC="${TARGET_CC}" \                        CXX="${TARGET_CXX}" \                        AR="${TARGET_AR}" \                        RANLIB="${TARGET_RANLIB}" \                        libc_cv_forced_unwind=yes \			libc_cv_cc_with_libunwind=yes \                        libc_cv_c_cleanup=yes \                        libc_cv_gnu99_inline=yes \			libc_cv_initfini_array=yes \# glibc does not compile with OsTARGET_CFLAGS:=		$(subst Os,O2,$(TARGET_CFLAGS))ifneq ($(ADK_DEBUG),)TARGET_CFLAGS+=		-O2endifGLIBC_MAKEOPTS+=	cross-compiling=yesifeq (${ADK_MAKE_PARALLEL},y)GLIBC_MAKEOPTS+=	PARALLELMFLAGS="-j$(ADK_MAKE_JOBS)"endifGLIBC_BUILD_DIR_FINAL:=		${WRKDIR}/$(PKG_NAME)-$(PKG_VERSION)-final$(WRKBUILD)/.configured:	mkdir -p $(GLIBC_BUILD_DIR_FINAL)	(cd $(GLIBC_BUILD_DIR_FINAL); \		${GLIBC_ENV} \		$(WRKBUILD)/configure \			--prefix=/usr \			--enable-shared \			--enable-stackguard-randomization \			${GLIBC_CONFOPTS} \	);	touch $@$(WRKBUILD)/.compiled:	${GLIBC_ENV} $(MAKE) ${GLIBC_MAKEOPTS} asm-CPPFLAGS='$${CFLAGS}' -C $(GLIBC_BUILD_DIR_FINAL) all	touch $@$(WRKBUILD)/.installed:	${GLIBC_ENV} $(MAKE) -C $(GLIBC_BUILD_DIR_FINAL) install_root=$(STAGING_TARGET_DIR) install	touch $(STAGING_TARGET_DIR)/usr/include/gnu/stubs.h	touch $(STAGING_TARGET_DIR)/usr/include/gnu/stubs-{32,x32,64,soft,hard}.h	mkdir -p ${STAGING_TARGET_DIR}/etc	${INSTALL_DATA} ${WRKBUILD}/posix/gai.conf ${STAGING_TARGET_DIR}/etc	${INSTALL_DATA} ${WRKBUILD}/nss/nsswitch.conf ${STAGING_TARGET_DIR}/etc	touch $@include ${ADK_TOPDIR}/mk/toolchain.mk
 |