summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-02-15 23:54:56 -0600
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-15 23:54:56 -0600
commit42e9e0a0406473a9b017342eaffc03c85f9bb51b (patch)
tree6be5142b3c75cbdb598ff777e8d52ad4bff895da /Makerules
parent6007a0d8e829c5f6ff79034c3101c214766dc3d2 (diff)
parent673c426bfbe58ee626d346b13365b73712f961ba (diff)
merge uClibc upstream changes
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makerules b/Makerules
index 85f21ea1a..87e3c19ee 100644
--- a/Makerules
+++ b/Makerules
@@ -29,7 +29,7 @@ objs: all_objs
# apply unconditional per-directory flags
define add_IS_IN_lib
ifneq ($(strip $(2)),)
-__add_IS_IN_lib := $(subst $(top_builddir),,$(2))
+__add_IS_IN_lib := $(2)
$$(__add_IS_IN_lib): CFLAGS-for-library-members:=$(CFLAGS-$(1)) -DIN_LIB=$(word 1,$(subst /, ,$(1)))
endif
endef