Makefile.inc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.19.90
  6. PKG_REPO:= git://sourceware.org/git/glibc.git
  7. endif
  8. ifeq ($(ADK_TARGET_LIB_GLIBC_2_20),y)
  9. PKG_VERSION:= 2.20
  10. PKG_SITES:= ${MASTER_SITE_GNU:=glibc/}
  11. PKG_RELEASE:= 1
  12. PKG_MD5SUM:= 948a6e06419a01bd51e97206861595b0
  13. endif
  14. ifeq ($(ADK_TARGET_LIB_GLIBC_2_19),y)
  15. PKG_VERSION:= 2.19
  16. PKG_SITES:= ${MASTER_SITE_GNU:=glibc/}
  17. PKG_RELEASE:= 1
  18. PKG_MD5SUM:= e26b8cc666b162f999404b03970f14e4
  19. endif
  20. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.xz
  21. GLIBC_CONFOPTS:= --build=$(GNU_HOST_NAME) \
  22. --host=$(GNU_TARGET_NAME) \
  23. --with-headers=$(STAGING_TARGET_DIR)/usr/include \
  24. --disable-sanity-checks \
  25. --disable-nls \
  26. --without-cvs \
  27. --disable-profile \
  28. --disable-debug \
  29. --without-gd \
  30. --disable-nscd \
  31. --with-__thread \
  32. --with-tls \
  33. --enable-kernel="2.6.32" \
  34. --enable-add-ons
  35. TARGET_CFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_CFLAGS))
  36. TARGET_LDFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_LDFLAGS))
  37. GLIBC_ENV:= PATH='${TARGET_PATH}' \
  38. CONFIG_SHELL='$(strip ${SHELL})' \
  39. BUILD_CC=${CC_FOR_BUILD} \
  40. CFLAGS="$(TARGET_CFLAGS)" \
  41. CC="${TARGET_CC}" \
  42. CXX="${TARGET_CXX}" \
  43. AR="${TARGET_AR}" \
  44. RANLIB="${TARGET_RANLIB}" \
  45. libc_cv_forced_unwind=yes \
  46. libc_cv_cc_with_libunwind=yes \
  47. libc_cv_c_cleanup=yes \
  48. libc_cv_gnu99_inline=yes \
  49. libc_cv_initfini_array=yes \