From 10aaf81c685996ed198a599545996838cfac85aa Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Fri, 30 Apr 2004 23:02:48 +0000 Subject: if nptl is enabled, depend on full gcc rather than -initial - patch courtesy pb_. BKrev: 4092db18Pl_xkMu2rcL6WFprKxy2dA --- glibc/glibc_cvs.oe | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'glibc') diff --git a/glibc/glibc_cvs.oe b/glibc/glibc_cvs.oe index ee91fd2674..a64d35bf48 100644 --- a/glibc/glibc_cvs.oe +++ b/glibc/glibc_cvs.oe @@ -6,6 +6,9 @@ SECTION = "libs" PRIORITY = "required" MAINTAINER = "Phil Blundell " +LIBC_ADDONS ?= "linuxthreads" +LIBC_EXTRA_OECONF ?= "" + # # For now, we will skip building of a gcc package if it is a uclibc one # and our build is not a uclibc one, and we skip a glibc one if our build @@ -22,10 +25,11 @@ python __anonymous () { oe.data.getVar('TARGET_OS', d, 1)) } -PROVIDES = "virtual/libc" PACKAGES = "glibc glibc-dev glibc-doc glibc-i18n glibc-locale" -DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial" +# nptl needs unwind support in gcc, which can't be built without glibc. +PROVIDES = "virtual/libc ${@['virtual/${TARGET_PREFIX}libc-for-gcc', '']['nptl' in '${LIBC_ADDONS}']}" +DEPENDS = "${@['virtual/${TARGET_PREFIX}gcc-initial', 'virtual/${TARGET_PREFIX}gcc']['nptl' in '${LIBC_ADDONS}']}" FILES_glibc_append = " ${datadir}/zoneinfo" FILES_glibc-dev_append = " ${libdir}/*.o" @@ -51,9 +55,6 @@ B = "${WORKDIR}/build-${TARGET_SYS}" inherit autotools -LIBC_ADDONS ?= "linuxthreads" -LIBC_EXTRA_OECONF ?= "" - EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \ --without-cvs --disable-profile --disable-debug --without-gd \ --enable-clocale=gnu \ -- cgit v1.2.3