mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bernhard Walle <bernhard@bwalle.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] rules/pre/Rules.make: Add library path to the cross environment
Date: Sun, 10 Jun 2012 11:28:12 +0200	[thread overview]
Message-ID: <1339320492-1404-1-git-send-email-bernhard@bwalle.de> (raw)

My commit 6ab38b6d244e0de21b9dd94052e0da30adc4aff3 added
DYLD_FALLBACK_LIBRARY_PATH to the host environment on Mac OS.  However,
this is not enough: Running tic(1) in ncurses.install stage fails
because the libraries in sysroot-host/lib cannot be found.

This commit fixes the problem by adding DYLD_FALLBACK_LIBRARY_PATH
also in the cross environment. On operating systems other than Mac OS
(Darwin), nothing should change.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
 rules/pre/Rules.make |   15 +++++++++------
 1 Datei geändert, 9 Zeilen hinzugefügt(+), 6 Zeilen entfernt(-)

diff --git a/rules/pre/Rules.make b/rules/pre/Rules.make
index 522c90e..6d59bf3 100644
--- a/rules/pre/Rules.make
+++ b/rules/pre/Rules.make
@@ -36,6 +36,12 @@ CROSS_PATH := $(PTXDIST_SYSROOT_CROSS)/bin:$(PTXDIST_SYSROOT_CROSS)/sbin:$$PATH
 # Environment
 # ----------------------------------------------------------------------------
 
+# needed both in the host and cross environment because we may host-tools
+# also when cross-compiling.
+ifeq ($(shell uname -s),Darwin)
+HOST_LIBRARY_PATH	:= DYLD_FALLBACK_LIBRARY_PATH=$(PTXDIST_SYSROOT_HOST)/lib
+endif
+
 #
 # Environment variables for the compiler
 #
@@ -254,7 +260,8 @@ CROSS_ENV := \
 	$(CROSS_ENV_PROGS) \
 	$(CROSS_ENV_FLAGS) \
 	$(CROSS_ENV_PKG_CONFIG) \
-	$(CROSS_ENV_AC)
+	$(CROSS_ENV_AC) \
+	$(HOST_LIBRARY_PATH)
 
 
 #
@@ -321,10 +328,6 @@ HOST_ENV_CXX		:= CXX="$(HOSTCXX)"
 HOST_ENV_CPPFLAGS	:= CPPFLAGS="$(HOST_CPPFLAGS)"
 HOST_ENV_LDFLAGS	:= LDFLAGS="$(HOST_LDFLAGS)"
 
-ifeq ($(shell uname -s),Darwin)
-HOST_ENV_LIBRARY_PATH	:= DYLD_FALLBACK_LIBRARY_PATH=$(PTXDIST_SYSROOT_HOST)/lib
-endif
-
 HOST_ENV_PKG_CONFIG	:= \
 	PKG_CONFIG_PATH="" \
 	PKG_CONFIG_LIBDIR="$(PTXDIST_SYSROOT_HOST)/lib/pkgconfig:$(PTXDIST_SYSROOT_HOST)/share/pkgconfig"
@@ -340,7 +343,7 @@ HOST_ENV	:= \
 	$(HOST_ENV_LDFLAGS) \
 	$(HOST_ENV_PKG_CONFIG) \
 	$(HOST_ENV_PYTHONPATH) \
-	$(HOST_ENV_LIBRARY_PATH)
+	$(HOST_LIBRARY_PATH)
 
 
 HOST_AUTOCONF  := --prefix=
-- 
1.7.10.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2012-06-10  9:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-10  9:28 Bernhard Walle [this message]
2012-06-10 15:01 ` Bernhard Walle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1339320492-1404-1-git-send-email-bernhard@bwalle.de \
    --to=bernhard@bwalle.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox