summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/uclibc/uclibc-git/append_UCLIBC_EXTRA_CFLAGS.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/uclibc/uclibc-git/append_UCLIBC_EXTRA_CFLAGS.patch')
-rw-r--r--meta/recipes-core/uclibc/uclibc-git/append_UCLIBC_EXTRA_CFLAGS.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/meta/recipes-core/uclibc/uclibc-git/append_UCLIBC_EXTRA_CFLAGS.patch b/meta/recipes-core/uclibc/uclibc-git/append_UCLIBC_EXTRA_CFLAGS.patch
deleted file mode 100644
index edcb4e324b..0000000000
--- a/meta/recipes-core/uclibc/uclibc-git/append_UCLIBC_EXTRA_CFLAGS.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1UCLIBC_EXTRA_CFLAGS is currently added before the OPTIMIZATION flags
2and OPTIMIZATION is chosen to be Os by default. But in OE we pass the optimisation
3flags through UCLIBC_EXTRA_CFLAGS but they are not effective since -Os is
4specified at last. So we need to change the order of these option flags
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8Upstream-Status: Pending
9
10diff --git a/Rules.mak b/Rules.mak
11index 65fe47c..eca7f40 100644
12--- a/Rules.mak
13+++ b/Rules.mak
14@@ -585,9 +574,6 @@ CFLAGS := -include $(top_srcdir)include/libc-symbols.h \
15 -nostdinc -I$(top_builddir)include -I$(top_srcdir)include -I. \
16 -I$(top_srcdir)libc/sysdeps/linux \
17 -I$(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)
18-ifneq ($(strip $(UCLIBC_EXTRA_CFLAGS)),"")
19-CFLAGS += $(call qstrip,$(UCLIBC_EXTRA_CFLAGS))
20-endif
21
22 # We need this to be checked within libc-symbols.h
23 ifneq ($(HAVE_SHARED),y)
24@@ -633,6 +619,9 @@ LDFLAGS += -Wl,-s
25 else
26 STRIPTOOL := true -Stripping_disabled
27 endif
28+ifneq ($(strip $(UCLIBC_EXTRA_CFLAGS)),"")
29+CFLAGS += $(call qstrip,$(UCLIBC_EXTRA_CFLAGS))
30+endif
31
32 ifeq ($(DOMULTI),y)
33 # we try to compile all sources at once into an object (IMA), but