From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:39050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkV4f-0001VH-5V for qemu-devel@nongnu.org; Sat, 23 Jul 2011 01:48:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkV4d-0003t2-L6 for qemu-devel@nongnu.org; Sat, 23 Jul 2011 01:48:29 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]:39044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkV4d-0003sq-De for qemu-devel@nongnu.org; Sat, 23 Jul 2011 01:48:27 -0400 From: josch Date: Sat, 23 Jul 2011 07:47:50 +0200 Message-Id: <1311400070-9051-2-git-send-email-josch@pyneo.org> In-Reply-To: <1311400070-9051-1-git-send-email-josch@pyneo.org> References: <1311400070-9051-1-git-send-email-josch@pyneo.org> Sender: josch@pyneo.org Subject: [Qemu-devel] [PATCH] add QEMU_LD_PREFIX environment variable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Riku Voipio , qemu-devel@nongnu.org Cc: Johannes Schauer From: Johannes Schauer Signed-off-by: Johannes Schauer --- linux-user/main.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 289054b..b590aa7 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -2891,6 +2891,11 @@ int main(int argc, char **argv, char **envp) cpudef_setup(); /* parse cpu definitions in target config file (TBD) */ #endif + /* read interp_prefix from environment variable */ + if (getenv("QEMU_LD_PREFIX") != NULL) { + interp_prefix = getenv("QEMU_LD_PREFIX"); + } + optind = 1; for(;;) { if (optind >= argc) -- 1.7.5.4