I recently built tmux starting with:

configure CFLAGS=-O0

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
value.

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
correctly.

-- 
William Pursell (w...@google.com) 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?

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to