osx: do not enforce flat namespace in copy mode on OS X.

This commit is contained in:
Sam Hocevar
2012-04-16 23:02:35 +00:00
committed by sam
parent 4724f045cf
commit 2384fa2601
+3 -1
View File
@@ -150,7 +150,9 @@ static int run_process(struct child *child, struct opts *opts, int pipes[][2])
# if defined __APPLE__
# define EXTRAINFO ""
# define PRELOAD "DYLD_INSERT_LIBRARIES"
setenv("DYLD_FORCE_FLAT_NAMESPACE", "1", 1);
/* Only enforce flat namespace in preload mode */
if (opts->opmode == OPMODE_PRELOAD)
setenv("DYLD_FORCE_FLAT_NAMESPACE", "1", 1);
# elif defined __osf__
# define EXTRAINFO ":DEFAULT"
# define PRELOAD "_RLD_LIST"