diff options
| author | Paul Eggert | 2013-04-06 23:21:40 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-04-06 23:21:40 -0700 |
| commit | 876da980f8de024f01efd8d9d86aba66f7cd3b4a (patch) | |
| tree | fd24c9c860b03376fec333affc2a5ea0cd3cb7f2 /src | |
| parent | 7452b7bd70f01fb96f13269250bda32507ce0cf1 (diff) | |
| download | emacs-876da980f8de024f01efd8d9d86aba66f7cd3b4a.tar.gz emacs-876da980f8de024f01efd8d9d86aba66f7cd3b4a.zip | |
Fix --enable-profiling bug introduced by 2013-02-25 change.
This bug was introduced by my 2013-02-25 change that simplified
data_start configuration. Without this change, on GNU/Linux
an Emacs configured with --enable-profiling fails immediately
due to a profiler signal.
* configure.ac (LD_SWITCH_SYSTEM_TEMACS): Append -pg if profiling
and if not on GNU/Linux or FreeBSD.
* lib/Makefile.am (AM_CFLAGS): Add $(PROFILING_CFLAGS), so that
lib/*.o is profiled too.
* src/Makefile.in: Compile with $(PROFILING_CFLAGS), but do not link
with these flags. On platforms where special flags are needed
when linking temacs, the flags are now in LD_SWITCH_SYSTEM_TEMACS.
(ALL_CFLAGS): Remove $(PROFILING_CFLAGS).
(.c.o, .m.o): Compile with $(PROFILING_CFLAGS).
Fixes: debbugs:13783
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 13 | ||||
| -rw-r--r-- | src/Makefile.in | 6 |
2 files changed, 16 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e39a104e135..75a7388f2c4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,16 @@ | |||
| 1 | 2013-04-07 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Fix --enable-profiling bug introduced by 2013-02-25 change (Bug#13783). | ||
| 4 | This bug was introduced by my 2013-02-25 change that simplified | ||
| 5 | data_start configuration. Without this change, on GNU/Linux | ||
| 6 | an Emacs configured with --enable-profiling fails immediately | ||
| 7 | due to a profiler signal. | ||
| 8 | * Makefile.in: Compile with $(PROFILING_CFLAGS), but do not link | ||
| 9 | with these flags. On platforms where special flags are needed | ||
| 10 | when linking temacs, the flags are now in LD_SWITCH_SYSTEM_TEMACS. | ||
| 11 | (ALL_CFLAGS): Remove $(PROFILING_CFLAGS). | ||
| 12 | (.c.o, .m.o): Compile with $(PROFILING_CFLAGS). | ||
| 13 | |||
| 1 | 2013-04-07 Dmitry Antipov <dmantipov@yandex.ru> | 14 | 2013-04-07 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 15 | ||
| 3 | Get rid of some platform-specific functions examining window | 16 | Get rid of some platform-specific functions examining window |
diff --git a/src/Makefile.in b/src/Makefile.in index 31de9714c65..c6a067a1ade 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -317,7 +317,7 @@ ALL_CFLAGS=-Demacs $(MYCPPFLAGS) -I. -I$(srcdir) \ | |||
| 317 | $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \ | 317 | $(GNUSTEP_CFLAGS) $(CFLAGS_SOUND) $(RSVG_CFLAGS) $(IMAGEMAGICK_CFLAGS) \ |
| 318 | $(LIBXML2_CFLAGS) $(DBUS_CFLAGS) \ | 318 | $(LIBXML2_CFLAGS) $(DBUS_CFLAGS) \ |
| 319 | $(SETTINGS_CFLAGS) $(FREETYPE_CFLAGS) $(FONTCONFIG_CFLAGS) \ | 319 | $(SETTINGS_CFLAGS) $(FREETYPE_CFLAGS) $(FONTCONFIG_CFLAGS) \ |
| 320 | $(LIBOTF_CFLAGS) $(M17N_FLT_CFLAGS) $(DEPFLAGS) $(PROFILING_CFLAGS) \ | 320 | $(LIBOTF_CFLAGS) $(M17N_FLT_CFLAGS) $(DEPFLAGS) \ |
| 321 | $(LIBGNUTLS_CFLAGS) \ | 321 | $(LIBGNUTLS_CFLAGS) \ |
| 322 | $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS) | 322 | $(WARN_CFLAGS) $(WERROR_CFLAGS) $(CFLAGS) |
| 323 | ALL_OBJC_CFLAGS=$(ALL_CFLAGS) $(GNU_OBJC_CFLAGS) | 323 | ALL_OBJC_CFLAGS=$(ALL_CFLAGS) $(GNU_OBJC_CFLAGS) |
| @@ -325,10 +325,10 @@ ALL_OBJC_CFLAGS=$(ALL_CFLAGS) $(GNU_OBJC_CFLAGS) | |||
| 325 | .SUFFIXES: .m | 325 | .SUFFIXES: .m |
| 326 | .c.o: | 326 | .c.o: |
| 327 | @$(MKDEPDIR) | 327 | @$(MKDEPDIR) |
| 328 | $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< | 328 | $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $(PROFILING_CFLAGS) $< |
| 329 | .m.o: | 329 | .m.o: |
| 330 | @$(MKDEPDIR) | 330 | @$(MKDEPDIR) |
| 331 | $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $< | 331 | $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $(PROFILING_CFLAGS) $< |
| 332 | 332 | ||
| 333 | ## lastfile must follow all files whose initialized data areas should | 333 | ## lastfile must follow all files whose initialized data areas should |
| 334 | ## be dumped as pure by dump-emacs. | 334 | ## be dumped as pure by dump-emacs. |