package/e2fsprogs: update to 1.42.12, add subpackages for static tune2fs and e2fsck
[openadk.git] / toolchain / glibc / Makefile.inc
blobf7e4c42b99dca1698ddb2ff9dcee4282ec025849
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 PKG_NAME:=              glibc
5 ifeq ($(ADK_LIBC_VERSION),git)
6 PKG_VERSION:=           2.21.90
7 PKG_SITES:=             git://sourceware.org/git/glibc.git
8 endif
9 ifeq ($(ADK_TARGET_LIB_GLIBC_2_21),y)
10 PKG_VERSION:=           2.21
11 PKG_SITES:=             ${MASTER_SITE_GNU:=glibc/}
12 PKG_RELEASE:=           1
13 PKG_HASH:=              aeeb362437965a5d3f40b151094ca79def04a115bd363fdd4a9a0c69482923b8
14 endif
15 ifeq ($(ADK_TARGET_LIB_GLIBC_2_20),y)
16 PKG_VERSION:=           2.20
17 PKG_SITES:=             ${MASTER_SITE_GNU:=glibc/}
18 PKG_RELEASE:=           1
19 PKG_HASH:=              f84b6d42aecc288d593c397b0a3d02260a33ee686bce0c634eb9b32798f36ba5
20 endif
21 DISTFILES:=             $(PKG_NAME)-$(PKG_VERSION).tar.xz
22 GLIBC_CONFOPTS:=        --build=$(GNU_HOST_NAME) \
23                         --host=$(GNU_TARGET_NAME) \
24                         --with-headers=$(STAGING_TARGET_DIR)/usr/include \
25                         --disable-sanity-checks \
26                         --disable-nls \
27                         --without-cvs \
28                         --disable-profile \
29                         --disable-debug \
30                         --without-gd \
31                         --disable-nscd \
32                         --with-__thread \
33                         --with-tls \
34                         --enable-kernel="2.6.32" \
35                         --enable-add-ons
36 ifeq ($(ADK_TARGET_FLOAT),soft)
37 GLIBC_CONFOPTS+=        --without-fp
38 endif
39 ifeq ($(ADK_TARGET_FLOAT),hard)
40 GLIBC_CONFOPTS+=        --with-fp
41 endif
42 TARGET_CFLAGS:=         $(filter-out -fstack-protector-all,$(TARGET_CFLAGS))
43 TARGET_LDFLAGS:=        $(filter-out -fstack-protector-all,$(TARGET_LDFLAGS))
44 GLIBC_ENV:=             PATH='${TARGET_PATH}' \
45                         CONFIG_SHELL='$(strip ${SHELL})' \
46                         BUILD_CC=${CC_FOR_BUILD} \
47                         CFLAGS="$(TARGET_CFLAGS)" \
48                         CC="${TARGET_CC}" \
49                         CXX="${TARGET_CXX}" \
50                         AR="${TARGET_AR}" \
51                         RANLIB="${TARGET_RANLIB}" \
52                         libc_cv_forced_unwind=yes \
53                         libc_cv_cc_with_libunwind=yes \
54                         libc_cv_c_cleanup=yes \
55                         libc_cv_gnu99_inline=yes \
56                         libc_cv_initfini_array=yes \