summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Corallo <akrl@sdf.org>2021-05-21 08:44:55 +0200
committerAndrea Corallo <akrl@sdf.org>2021-05-21 08:49:25 +0200
commit3f207753a06453ab97d1a28ede89eb56cf425092 (patch)
tree7ec338b11570e12363a047771c101ee738b3e316
parent8349f8294c3853299ad94779c25ee9fad6806b80 (diff)
downloademacs-3f207753a06453ab97d1a28ede89eb56cf425092.tar.gz
* Fix ahead-of-time native compilation for out-of-tree builds (bug#48497)
* src/comp.c (Fcomp_el_to_eln_rel_filename): Expand 'PATH_DUMPLOADSEARCH' while computing 'loadsearch_re_list'.
-rw-r--r--src/comp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp.c b/src/comp.c
index c0445050b71..340ed850387 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -4056,7 +4056,8 @@ DEFUN ("comp-el-to-eln-rel-filename", Fcomp_el_to_eln_rel_filename,
Lisp_Object sys_re =
concat2 (build_string ("\\`[[:ascii:]]+"),
Fregexp_quote (build_string ("/" PATH_REL_LOADSEARCH "/")));
- Lisp_Object dump_load_search = build_string (PATH_DUMPLOADSEARCH "/");
+ Lisp_Object dump_load_search =
+ Fexpand_file_name (build_string (PATH_DUMPLOADSEARCH "/"), Qnil);
#ifdef WINDOWSNT
dump_load_search = Fw32_long_file_name (dump_load_search);
#endif