eina/prefix: ignore magic files when running in tree
authorMike Blumenkrantz <zmike@samsung.com>
Wed, 29 May 2019 13:16:35 +0000 (09:16 -0400)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 3 Jun 2019 06:58:34 +0000 (15:58 +0900)
Summary:
this just can't work.

@fix
Depends on D8951

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8952

src/lib/eina/eina_prefix.c

index 35b8cec..56737ad 100644 (file)
@@ -507,7 +507,7 @@ eina_prefix_new(const char *argv0, void *symbol, const char *envprefix,
              datadir = tmp;
           }
      }
-   if (magicsharefile)
+   if (magicsharefile && (!getenv("EFL_RUN_IN_TREE")))
      {
         magic = alloca(strlen(magicsharefile) + 1);
         strcpy(magic, magicsharefile);