From 343f6b8f1f754e397632b0552e4afe586c8b392b Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 28 Jan 2015 10:50:34 +0100 Subject: 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 --- Makerules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makerules') 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 -- cgit v1.2.3