summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-03-17 07:04:46 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-03-20 10:08:15 +0100
commit64828a12a04a6d18e84e7a0c286423033c6d41c7 (patch)
tree3b17143edde7701d2b04665a7858ddaa71eaf6bc /Rules.mak
parent6bfb450b58b778825e2c593c929b8ad4b8e294fb (diff)
test: fix non-O checking
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak10
1 files changed, 4 insertions, 6 deletions
diff --git a/Rules.mak b/Rules.mak
index a602b4fdd..c2eb2a611 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -81,14 +81,12 @@ BUILD_CFLAGS = -Os -Wall
qstrip = $(strip $(subst ",,$(1)))
#"))
-ifndef KCONFIG_CONFIG
-KCONFIG_CONFIG := $(top_builddir).config
-endif
+KCONFIG_CONFIG ?= $(top_builddir).config
# Pull in the user's uClibc configuration
-ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
+ifeq ($(filter $(noconfig_targets) $(clean_targets) CLEAN_%,$(MAKECMDGOALS)),)
# Prevent make from searching
-__ABS_KCONFIG_CONFIG := $(abspath $(KCONFIG_CONFIG))
+__ABS_KCONFIG_CONFIG ?= $(abspath $(KCONFIG_CONFIG))
-include $(__ABS_KCONFIG_CONFIG)
else
# else we have to tell config where to write .config
@@ -828,8 +826,8 @@ $(eval $(call cache-output-var,LIBGCC,$(CC) $(LIBGCC_CFLAGS) -print-libgcc-file-
$(eval $(call cache-output-var,LIBGCC_EH,$(CC) $(LIBGCC_CFLAGS) -print-file-name=libgcc_eh.a))
# with -O0 we (e.g. lockf) might end up with references to
# _Unwind_Resume, so pull in gcc_eh in this case..
-LIBGCC += $(if $(DODEBUG),$(LIBGCC_EH))
LIBGCC_DIR:=$(dir $(LIBGCC))
+LIBGCC += $(if $(DODEBUG),$(LIBGCC_EH))
# moved from libpthread/linuxthreads
ifeq ($(UCLIBC_CTOR_DTOR),y)