summaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2015-01-28 10:50:34 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2015-01-28 10:50:34 +0100
commit343f6b8f1f754e397632b0552e4afe586c8b392b (patch)
treec8fb922eac616ed311d29f51de1405e49a37f70c /Makerules
parent92de8a5f6ffb1ff9f7183fd08d872aa098b75ae2 (diff)
buildsys: fix IS_IN_lib* for out-of-tree builds
41537a770b46f2376e74af58ba4885749339e81e erroneously stripped the top_builddir off the per-directory flag setting which works fine for in-tree builds but is not correct for O= Just use the full path of the target files to apply the flags to fix that thinko. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
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