Makefile.inc 2.3 KB

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