aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWolfgang Jenkner2016-01-30 14:20:56 -0800
committerPaul Eggert2016-01-30 15:26:06 -0800
commita5f85861293911b3f394464a04f7972b83d47a95 (patch)
tree969c762d8b50131993e9967c6031bf3d05cf0d4a /src
parentcb22fce283e3852ea33a09f40707cf0c004c717e (diff)
downloademacs-a5f85861293911b3f394464a04f7972b83d47a95.tar.gz
emacs-a5f85861293911b3f394464a04f7972b83d47a95.zip
Link temacs with gnulib compiled with -Demacs
This is done to support HYBRID_MALLOC, since some static variables (e.g., last_environ in putenv.c) hold pointers to memory malloced before dumping (Bug#22086). * lib/Makefile.am: Add incantation to install libegnu.a. * src/Makefile.in ($(lib)/libgnu.a): Replace with libegnu.a (temacs$(EXEEXT)): Use it.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index b38e7d558b8..6a315427b6f 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -576,7 +576,7 @@ globals.h: gl-stamp; @true
576 576
577$(ALLOBJS): globals.h 577$(ALLOBJS): globals.h
578 578
579$(lib)/libgnu.a: $(config_h) 579$(lib)/libegnu.a: $(config_h)
580 $(MAKE) -C $(lib) all 580 $(MAKE) -C $(lib) all
581 581
582## We have to create $(etc) here because init_cmdargs tests its 582## We have to create $(etc) here because init_cmdargs tests its
@@ -584,9 +584,9 @@ $(lib)/libgnu.a: $(config_h)
584## This goes on to affect various things, and the emacs binary fails 584## This goes on to affect various things, and the emacs binary fails
585## to start if Vinstallation_directory has the wrong value. 585## to start if Vinstallation_directory has the wrong value.
586temacs$(EXEEXT): $(LIBXMENU) $(ALLOBJS) \ 586temacs$(EXEEXT): $(LIBXMENU) $(ALLOBJS) \
587 $(lib)/libgnu.a $(EMACSRES) ${charsets} ${charscript} 587 $(lib)/libegnu.a $(EMACSRES) ${charsets} ${charscript}
588 $(AM_V_CCLD)$(CC) $(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(LDFLAGS) \ 588 $(AM_V_CCLD)$(CC) $(ALL_CFLAGS) $(TEMACS_LDFLAGS) $(LDFLAGS) \
589 -o temacs $(ALLOBJS) $(lib)/libgnu.a $(W32_RES_LINK) $(LIBES) 589 -o temacs $(ALLOBJS) $(lib)/libegnu.a $(W32_RES_LINK) $(LIBES)
590 $(MKDIR_P) $(etc) 590 $(MKDIR_P) $(etc)
591ifneq ($(CANNOT_DUMP),yes) 591ifneq ($(CANNOT_DUMP),yes)
592 $(PAXCTL_if_present) -r $@ 592 $(PAXCTL_if_present) -r $@