All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] slang: fix linking issue
@ 2014-03-27 23:06 Romain Naour
  2014-03-27 23:06 ` [Buildroot] [PATCH 2/2] slang: add ncurses optional dependency Romain Naour
  2014-03-28  8:55 ` [Buildroot] [PATCH 1/2] slang: fix linking issue Peter Korsgaard
  0 siblings, 2 replies; 5+ messages in thread
From: Romain Naour @ 2014-03-27 23:06 UTC (permalink / raw)
  To: buildroot

The installation location of the slang library
does not take into account the DESTDIR directory.
So SLANG_INST_LIB is initialized with -L/usr/lib/
and slang may be linked with host's libdl.so (if any)
Therefore, we have to pass correct installation paths.

Fixes:
http://autobuild.buildroot.net/results/df4/df435d9cebbdc84b3581ba258b618123570dde8b/

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
 package/slang/slang.mk | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/package/slang/slang.mk b/package/slang/slang.mk
index d519eca..38f0b6f 100644
--- a/package/slang/slang.mk
+++ b/package/slang/slang.mk
@@ -13,4 +13,21 @@ SLANG_LICENSE_FILES = COPYING
 SLANG_INSTALL_STAGING = YES
 SLANG_MAKE = $(MAKE1)
 
+# The installation location of the slang library
+# does not take into account the DESTDIR directory.
+# So SLANG_INST_LIB is initialized with -L/usr/lib/
+# and slang may be linked with host's libdl.so (if any)
+# Therefore, we have to pass correct installation paths.
+SLANG_INSTALL_STAGING_OPT = \
+	prefix=$(STAGING_DIR)/usr \
+	exec_prefix=$(STAGING_DIR)/usr \
+	DESTDIR=$(STAGING_DIR) \
+	install
+
+SLANG_INSTALL_TARGET_OPT = \
+	prefix=$(STAGING_DIR)/usr \
+	exec_prefix=$(STAGING_DIR)/usr \
+	DESTDIR=$(TARGET_DIR) \
+	install
+
 $(eval $(autotools-package))
-- 
1.9.0

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

end of thread, other threads:[~2014-03-29  9:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-27 23:06 [Buildroot] [PATCH 1/2] slang: fix linking issue Romain Naour
2014-03-27 23:06 ` [Buildroot] [PATCH 2/2] slang: add ncurses optional dependency Romain Naour
2014-03-28  8:56   ` Peter Korsgaard
2014-03-29  9:39     ` Romain Naour
2014-03-28  8:55 ` [Buildroot] [PATCH 1/2] slang: fix linking issue Peter Korsgaard

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.