---
bsd-user/main.c | 5 +++++
darwin-user/main.c | 5 +++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/bsd-user/main.c b/bsd-user/main.c
index 6b12f8b..cb98fa6 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -763,6 +763,11 @@ int main(int argc, char **argv)
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)
diff --git a/darwin-user/main.c b/darwin-user/main.c
index 175e12f..5a67164 100644
--- a/darwin-user/main.c
+++ b/darwin-user/main.c
@@ -752,6 +752,11 @@ int main(int argc, char **argv)
/* init debug */
cpu_set_log_filename(DEBUG_LOGFILE);
+ /* 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
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]