[git commit] buildsys: fix IS_IN_lib* for out-of-tree builds

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Wed Jan 28 09:50:34 UTC 2015


commit: http://git.uclibc.org/uClibc/commit/?id=343f6b8f1f754e397632b0552e4afe586c8b392b
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

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 at gmail.com>
---
 Makerules |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makerules b/Makerules
index 85f21ea..87e3c19 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


More information about the uClibc-cvs mailing list