diff options
Diffstat (limited to 'meta/recipes-core/glibc')
-rw-r--r-- | meta/recipes-core/glibc/glibc.inc | 9 | ||||
-rw-r--r-- | meta/recipes-core/glibc/glibc_2.29.bb | 1 |
2 files changed, 1 insertions, 9 deletions
diff --git a/meta/recipes-core/glibc/glibc.inc b/meta/recipes-core/glibc/glibc.inc index b550abd877..252fd56c13 100644 --- a/meta/recipes-core/glibc/glibc.inc +++ b/meta/recipes-core/glibc/glibc.inc | |||
@@ -2,15 +2,6 @@ require glibc-common.inc | |||
2 | require glibc-ld.inc | 2 | require glibc-ld.inc |
3 | require glibc-testing.inc | 3 | require glibc-testing.inc |
4 | 4 | ||
5 | python () { | ||
6 | opt_effective = "-O" | ||
7 | for opt in d.getVar('SELECTED_OPTIMIZATION').split(): | ||
8 | if opt in ("-O0", "-O", "-O1", "-O2", "-O3", "-Os"): | ||
9 | opt_effective = opt | ||
10 | if opt_effective == "-O0": | ||
11 | bb.fatal("%s can't be built with %s, try -O1 instead" % (d.getVar('PN'), opt_effective)) | ||
12 | } | ||
13 | |||
14 | DEPENDS = "virtual/${TARGET_PREFIX}gcc libgcc-initial linux-libc-headers" | 5 | DEPENDS = "virtual/${TARGET_PREFIX}gcc libgcc-initial linux-libc-headers" |
15 | 6 | ||
16 | PROVIDES = "virtual/libc" | 7 | PROVIDES = "virtual/libc" |
diff --git a/meta/recipes-core/glibc/glibc_2.29.bb b/meta/recipes-core/glibc/glibc_2.29.bb index c3e969d2f8..4577350eae 100644 --- a/meta/recipes-core/glibc/glibc_2.29.bb +++ b/meta/recipes-core/glibc/glibc_2.29.bb | |||
@@ -85,6 +85,7 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \ | |||
85 | --disable-crypt \ | 85 | --disable-crypt \ |
86 | --with-default-link \ | 86 | --with-default-link \ |
87 | --enable-nscd \ | 87 | --enable-nscd \ |
88 | ${@bb.utils.contains_any('SELECTED_OPTIMIZATION', '-O0 -Og', '--disable-werror', '', d)} \ | ||
88 | ${GLIBCPIE} \ | 89 | ${GLIBCPIE} \ |
89 | ${GLIBC_EXTRA_OECONF}" | 90 | ${GLIBC_EXTRA_OECONF}" |
90 | 91 | ||