diff options
| author | Eli Zaretskii | 2021-05-19 17:42:50 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2021-05-19 17:42:50 +0300 |
| commit | 5e1a8d5654d97d2631ad67ebb88be4d2eec7d408 (patch) | |
| tree | 8c42a8a77255c2767d18cb92e11c038907d72214 /lib | |
| parent | dac694b8bb1e5a31a50215ceee6b064ae7c5001f (diff) | |
| download | emacs-5e1a8d5654d97d2631ad67ebb88be4d2eec7d408.tar.gz emacs-5e1a8d5654d97d2631ad67ebb88be4d2eec7d408.zip | |
Fix the unexec build on GNU/Linux
The unexec build on GNU/Linux must use HYBRID_MALLOC (gmalloc.c) and
sheap.c. This was inadvertently disabled because a configure-time
test for 'sbrk' was moved as side effect of an unrelated change.
* configure.ac: Test for 'sbrk' before using the result in the
decision about SYSTEM_MALLOC and HYBRID_MALLOC.
(HYBRID_MALLOC): Prevent Gnulib from redirecting 'free' to its
replacement 'rpl_free'.
* lib/Makefile.in (not_emacs_OBJECTS): Add mallooc/%.o and free.o.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Makefile.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Makefile.in b/lib/Makefile.in index 6c7a4430999..ec92f92fb3e 100644 --- a/lib/Makefile.in +++ b/lib/Makefile.in | |||
| @@ -69,7 +69,9 @@ Makefile: ../config.status $(srcdir)/Makefile.in | |||
| 69 | # Object modules that need not be built for Emacs. | 69 | # Object modules that need not be built for Emacs. |
| 70 | # Emacs does not need e-regex.o (it has its own regex-emacs.c), | 70 | # Emacs does not need e-regex.o (it has its own regex-emacs.c), |
| 71 | # and building it would just waste time. | 71 | # and building it would just waste time. |
| 72 | not_emacs_OBJECTS = regex.o | 72 | # Emacs also doesn't need the dynarray-related files in malloc/ and |
| 73 | # the replacement 'free'. | ||
| 74 | not_emacs_OBJECTS = regex.o malloc/%.o free.o | ||
| 73 | 75 | ||
| 74 | libgnu_a_OBJECTS = fingerprint.o $(gl_LIBOBJS) \ | 76 | libgnu_a_OBJECTS = fingerprint.o $(gl_LIBOBJS) \ |
| 75 | $(patsubst %.c,%.o,$(filter %.c,$(libgnu_a_SOURCES))) | 77 | $(patsubst %.c,%.o,$(filter %.c,$(libgnu_a_SOURCES))) |