Patchwork add QEMU_LD_PREFIX environment variable

login
register
mail settings
Submitter Johannes Schauer
Date July 6, 2011, 9:15 a.m.
Message ID <1309943749-15892-2-git-send-email-j.schauer@email.de>
Download mbox | patch
Permalink /patch/103443/
State New
Headers show

Comments

Johannes Schauer - July 6, 2011, 9:15 a.m.
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)