Fix --enable-profiling bug introduced by 2013-02-25 change.
commitd1b2defd76a771b2b3b401b1ac45c80a7cd25a9b
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 7 Apr 2013 06:21:40 +0000 (6 23:21 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 7 Apr 2013 06:21:40 +0000 (6 23:21 -0700)
tree4900652ebb51358b9bccfd27df484504a51966dd
parent58b04e78a0ef2ae7cc923cbf37b6b69decaea634
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).
ChangeLog
configure.ac
lib/Makefile.am
src/ChangeLog
src/Makefile.in