Makefile.inc 2.1 KB

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