diff options
| author | Paul Eggert | 2016-01-30 14:20:57 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-01-30 15:26:08 -0800 |
| commit | 7fdc3cf046ee112b883752ea15ca8cb05444d12f (patch) | |
| tree | 3656fb91c2100d280d0a70d3b81ead2a63ed317e /lib | |
| parent | a4817d834e7d125d31049dfb6fd0a0df4782bad0 (diff) | |
| download | emacs-7fdc3cf046ee112b883752ea15ca8cb05444d12f.tar.gz emacs-7fdc3cf046ee112b883752ea15ca8cb05444d12f.zip | |
Build lib/e-*.o only on platforms that need it
* configure.ac (hybrid malloc): Simplify configuration.
(SHEAP_OBJ): Remove; no longer needed.
(HYBRID_MALLOC): New var. Subst it.
(HYBRID_MALLOC_LIB): New Automake conditional.
* lib/Makefile.am (noinst_LIBRARIES): Add libegnu.a only if
HYBRID_MALLOC_LIB.
(libegnu_a_CPPFLAGS): Omit AM_CPPFLAGS; not needed.
(MOSTLYCLEANFILES): Add libegnu.a.
* src/Makefile.in (SHEAP_OBJ): Remove.
(HYBRID_MALLOC): New macro.
(base_obj): Use it to conditionally add sheap.o.
(LIBEGNU_ARCHIVE): New macro.
($(LIBEGNU_ARCHIVE)): New rule, replacing $(lib)/libegnu.a.
All uses of the latter replaced by the former.
* src/alloc.c (USE_ALIGNED_ALLOC): Simplify configuration.
Correct misspelling ALIGNED_ALLOC to HAVE_ALIGNED_ALLOC.
* src/gmalloc.c: Update comment.
* src/lisp.h (aligned_alloc)
[!DOUG_LEA_MALLOC && !HYBRID_MALLOC && !SYSTEM_MALLOC]:
New decl.
(Bug#22086)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Makefile.am | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am index a1dd6a4ca90..74bab4eee06 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am | |||
| @@ -1,3 +1,20 @@ | |||
| 1 | # Copyright 2016 Free Software Foundation, Inc. | ||
| 2 | |||
| 3 | # This file is part of GNU Emacs. | ||
| 4 | |||
| 5 | # GNU Emacs is free software: you can redistribute it and/or modify | ||
| 6 | # it under the terms of the GNU General Public License as published by | ||
| 7 | # the Free Software Foundation, either version 3 of the License, or | ||
| 8 | # (at your option) any later version. | ||
| 9 | |||
| 10 | # GNU Emacs is distributed in the hope that it will be useful, | ||
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | # GNU General Public License for more details. | ||
| 14 | |||
| 15 | # You should have received a copy of the GNU General Public License | ||
| 16 | # along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | ||
| 17 | |||
| 1 | BUILT_SOURCES = | 18 | BUILT_SOURCES = |
| 2 | CLEANFILES = | 19 | CLEANFILES = |
| 3 | EXTRA_DIST = | 20 | EXTRA_DIST = |
| @@ -17,14 +34,16 @@ include gnulib.mk | |||
| 17 | libgnu_a_SOURCES += openat-die.c save-cwd.c | 34 | libgnu_a_SOURCES += openat-die.c save-cwd.c |
| 18 | endif | 35 | endif |
| 19 | 36 | ||
| 37 | if HYBRID_MALLOC_LIB | ||
| 20 | noinst_LIBRARIES += libegnu.a | 38 | noinst_LIBRARIES += libegnu.a |
| 39 | endif | ||
| 21 | 40 | ||
| 22 | libegnu_a_SOURCES = $(libgnu_a_SOURCES) | 41 | libegnu_a_SOURCES = $(libgnu_a_SOURCES) |
| 23 | libegnu_a_LIBADD = $(patsubst %.o,e-%.o,$(libgnu_a_LIBADD)) | 42 | libegnu_a_LIBADD = $(patsubst %.o,e-%.o,$(libgnu_a_LIBADD)) |
| 24 | EXTRA_libegnu_a_SOURCES = $(EXTRA_libgnu_a_SOURCES) | 43 | EXTRA_libegnu_a_SOURCES = $(EXTRA_libgnu_a_SOURCES) |
| 25 | libegnu_a_SHORTNAME = e | 44 | libegnu_a_SHORTNAME = e |
| 26 | 45 | libegnu_a_CPPFLAGS = -Demacs | |
| 27 | libegnu_a_CPPFLAGS = $(AM_CPPFLAGS) -Demacs | 46 | MOSTLYCLEANFILES += libegnu.a |
| 28 | 47 | ||
| 29 | .PHONY: bootstrap-clean | 48 | .PHONY: bootstrap-clean |
| 30 | 49 | ||