From patchwork Sat Jul 23 05:47:50 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: josch X-Patchwork-Id: 106412 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 7B8C5B6F00 for ; Sat, 23 Jul 2011 15:48:38 +1000 (EST) Received: from localhost ([::1]:44106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkV4l-0001VS-MT for incoming@patchwork.ozlabs.org; Sat, 23 Jul 2011 01:48:35 -0400 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 Received: from smtp02.web.de ( [172.20.0.184]) by fmmailgate03.web.de (Postfix) with ESMTP id 8749419600FC4; Sat, 23 Jul 2011 07:48:26 +0200 (CEST) Received: from [212.201.44.245] (helo=localhost.localdomain) by smtp02.web.de with asmtp (WEB.DE 4.110 #2) id 1QkV4c-0002KG-00; Sat, 23 Jul 2011 07:48:26 +0200 From: josch To: Riku Voipio , qemu-devel@nongnu.org Date: Sat, 23 Jul 2011 07:47:50 +0200 Message-Id: <1311400070-9051-2-git-send-email-josch@pyneo.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1311400070-9051-1-git-send-email-josch@pyneo.org> References: <1311400070-9051-1-git-send-email-josch@pyneo.org> X-Sender: j.schauer@web.de X-Provags-ID: V01U2FsdGVkX1/CPv3PzKq3tlX1Q3TA+Sbazb8nB3cX8urttbN0 l8AOTqZp7p4HsYUhxN5zuUR5NwlZnBT/uaauqdZlQ3htuLUKEO mBm1fa/FE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.234 Cc: Johannes Schauer Subject: [Qemu-devel] [PATCH] add QEMU_LD_PREFIX environment variable X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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)