All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ] build: use abspath for lib/bluetooth
@ 2017-08-23 22:58 Yunhan Wang
  2017-08-29  3:24 ` Yunhan Wang
  2017-08-29  5:08 ` Marcel Holtmann
  0 siblings, 2 replies; 10+ messages in thread
From: Yunhan Wang @ 2017-08-23 22:58 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Yunhan Wang

When building from out of tree, and the top build dir was specified as
an absolute path, the linked headers in ${builddir}/lib/bluetooth were
broken.  This patch fixes it by relying on make's abspath macro as
opposed to the path concatenation.
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index eaed632e8..ad638cbb2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -499,7 +499,7 @@ $(lib_libbluetooth_la_OBJECTS): $(local_headers)
 
 lib/bluetooth/%.h: lib/%.h
 	$(AM_V_at)$(MKDIR_P) lib/bluetooth
-	$(AM_V_GEN)$(LN_S) -f "$(abs_top_builddir)"/$< $@
+	$(AM_V_GEN)$(LN_S) -f $(abspath $<) $@
 
 if COVERAGE
 clean-coverage:
-- 
2.14.1.342.g6490525c54-goog


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-09-25 22:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-23 22:58 [PATCH BlueZ] build: use abspath for lib/bluetooth Yunhan Wang
2017-08-29  3:24 ` Yunhan Wang
2017-08-29  5:08 ` Marcel Holtmann
2017-09-19  4:47   ` Yunhan Wang
2017-09-20  5:55     ` Yunhan Wang
2017-09-21 18:11       ` Yunhan Wang
2017-09-25  4:17         ` Yunhan Wang
2017-09-25 12:15           ` Johan Hedberg
2017-09-25 13:22             ` Luiz Augusto von Dentz
2017-09-25 22:39               ` Yunhan Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.