https://bugs.openldap.org/show_bug.cgi?id=9525
--- Comment #4 from Howard Chu <[email protected]> --- (In reply to Quanah Gibson-Mount from comment #3) > (In reply to Howard Chu from comment #1) > > (In reply to Quanah Gibson-Mount from comment #0) > > > Currently the contrib makefiles use a variable "OPT", instead they should > > > be > > > fixed to correctly honor CFLAGS, CPPFLAGS, and LDFLAGS as appropriate > > > > No. > > > > CFLAGS / CPPFLAGS are to control non-optimization-related compilation flags. > > OPT is to control optimization only, without changing any other aspect of > > the build. > > > > In particular, CFLAGS comprises the entire set of flags; overriding CFLAGS > > from the make commandline usually means you have to either redundantly > > specify a lot of important flags, or lose them in the process. > > Modern builds use tools to do the builds, which set up the CFLAGS, CPPFLAGS, > and LFLAGS so that a consistent build can be obtained across the board. Sure, CFLAGS / CPPFLAGS / LDFLAGS should be used. But optimization flags should always be in the OPT variable, and CFLAGS can reference $(OPT) wherever it is used. The ability to do immediate rebuilds with different optimization, without changing any other build flags must be preserved. -- You are receiving this mail because: You are on the CC list for the issue.
