From e6b806f29e06e472a44763def6b4d904b5f1ba54 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=93scar=20Fuentes?= Date: Sat, 2 Nov 2019 18:01:01 +0100 Subject: [PATCH] Fix data-directory when executing from an out-of-source build Fixes #36828. * src/callproc.c (init_callproc): detect out-of-source build. --- src/callproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callproc.c b/src/callproc.c index 007465cd405..b51594c2d51 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -1567,7 +1567,7 @@ init_callproc (void) tem = Fexpand_file_name (build_string ("NEWS"), Vdata_directory); if (!NILP (Fequal (srcdir, Vinvocation_directory)) - || NILP (Ffile_exists_p (tem))) + || NILP (Ffile_exists_p (tem)) || !NILP (Vinstallation_directory)) { Lisp_Object newdir; newdir = Fexpand_file_name (build_string ("../etc/"), lispdir); -- 2.39.5