Makefile.inc 1.5 KB

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