1
0

Makefile.inc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. PKG_NAME:= glibc
  4. ifeq ($(ADK_LIBC_VERSION),git)
  5. PKG_VERSION:= 2.22.90
  6. PKG_SITES:= git://sourceware.org/git/glibc.git
  7. PKG_RELEASE:= 1
  8. endif
  9. ifeq ($(ADK_TARGET_LIB_GLIBC_2_22),y)
  10. PKG_VERSION:= 2.22
  11. PKG_SITES:= ${MASTER_SITE_GNU:=glibc/}
  12. PKG_RELEASE:= 1
  13. PKG_HASH:= eb731406903befef1d8f878a46be75ef862b9056ab0cde1626d08a7a05328948
  14. endif
  15. ifeq ($(ADK_TARGET_LIB_GLIBC_2_21),y)
  16. PKG_VERSION:= 2.21
  17. PKG_SITES:= ${MASTER_SITE_GNU:=glibc/}
  18. PKG_RELEASE:= 1
  19. PKG_HASH:= aeeb362437965a5d3f40b151094ca79def04a115bd363fdd4a9a0c69482923b8
  20. endif
  21. ifeq ($(ADK_TARGET_LIB_GLIBC_2_20),y)
  22. PKG_VERSION:= 2.20
  23. PKG_SITES:= ${MASTER_SITE_GNU:=glibc/}
  24. PKG_RELEASE:= 1
  25. PKG_HASH:= f84b6d42aecc288d593c397b0a3d02260a33ee686bce0c634eb9b32798f36ba5
  26. endif
  27. ifeq ($(ADK_TARGET_LIB_GLIBC_2_19),y)
  28. PKG_VERSION:= 2.19
  29. PKG_SITES:= ${MASTER_SITE_GNU:=glibc/}
  30. PKG_RELEASE:= 1
  31. PKG_HASH:= 2d3997f588401ea095a0b27227b1d50cdfdd416236f6567b564549d3b46ea2a2
  32. endif
  33. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.xz
  34. GLIBC_CONFOPTS:= --build=$(GNU_HOST_NAME) \
  35. --host=$(GNU_TARGET_NAME) \
  36. --with-headers=$(STAGING_TARGET_DIR)/usr/include \
  37. --disable-sanity-checks \
  38. --disable-werror \
  39. --disable-nls \
  40. --disable-werror \
  41. --without-cvs \
  42. --disable-profile \
  43. --disable-debug \
  44. --without-gd \
  45. --disable-nscd \
  46. --with-__thread \
  47. --with-tls \
  48. --enable-kernel="2.6.32" \
  49. --enable-add-ons
  50. ifeq ($(ADK_TARGET_FLOAT),soft)
  51. GLIBC_CONFOPTS+= --without-fp
  52. endif
  53. ifeq ($(ADK_TARGET_FLOAT),hard)
  54. GLIBC_CONFOPTS+= --with-fp
  55. endif
  56. TARGET_CFLAGS:= $(filter-out -fno-asynchronous-unwind-tables,$(TARGET_CFLAGS))
  57. TARGET_CFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_CFLAGS))
  58. TARGET_LDFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_LDFLAGS))
  59. GLIBC_ENV:= PATH='${TARGET_PATH}' \
  60. CONFIG_SHELL='$(strip ${SHELL})' \
  61. BUILD_CC=${CC_FOR_BUILD} \
  62. CFLAGS="$(TARGET_CFLAGS)" \
  63. CC="${TARGET_CC}" \
  64. CXX="${TARGET_CXX}" \
  65. AR="${TARGET_AR}" \
  66. RANLIB="${TARGET_RANLIB}" \
  67. libc_cv_forced_unwind=yes \
  68. libc_cv_cc_with_libunwind=yes \
  69. libc_cv_c_cleanup=yes \
  70. libc_cv_gnu99_inline=yes \
  71. libc_cv_initfini_array=yes \