Patchwork add QEMU_LD_PREFIX environment variable

login
register
mail settings
Submitter josch
Date July 23, 2011, 5:47 a.m.
Message ID <1311400070-9051-2-git-send-email-josch@pyneo.org>
Download mbox | patch
Permalink /patch/106412/
State New
Headers show

Comments

josch - July 23, 2011, 5:47 a.m.
From: Johannes Schauer <j.schauer@email.de>


Signed-off-by: Johannes Schauer <j.schauer@email.de>
---
 linux-user/main.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch

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)