I recently built tmux starting with:
I was quite shocked to see -O2 being appended to the build. Glancing
through makefile.am, I see CFLAGS being appended to directly. CFLAGS
is a user variable, and the maintainer should not be changing its
Please, modify the Makefile.am to assign AM_CFLAGS and AM_CPPFLAGS
instead of CFLAGS/CPPFLAGS. That will cause the user value assigned
to CFLAGS to be written after the values to AM_CFLAGS, and fewer
complications will ensue. I am happy to submit a patch if requested.
I recognize that ./configure --enable-debug is available, but the
principle of least surprise demands that 'configure CFLAGS=-O0' work
William Pursell (wrp@...) Youtube SRE
A: RFC 1855, section 3.1.1, paragraph 10
Q: But does it violate any technical recommendation?
A: It reverses the normal flow of conversation!
Q: What's wrong with top-posting?