OSDN Git Service

buildsys: fix IS_IN_lib* for out-of-tree builds
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 28 Jan 2015 09:50:34 +0000 (10:50 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 28 Jan 2015 09:50:34 +0000 (10:50 +0100)
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>
Makerules

index 85f21ea..87e3c19 100644 (file)
--- 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