summaryrefslogtreecommitdiff
path: root/glibc/glibc_cvs.oe
diff options
context:
space:
mode:
Diffstat (limited to 'glibc/glibc_cvs.oe')
-rw-r--r--glibc/glibc_cvs.oe11
1 files changed, 6 insertions, 5 deletions
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 <pb@handhelds.org>"
+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 \