The Samba-Bugzilla – Bug 5798
CFLAGS info lost in configure
Last modified: 2009-05-13 02:29:08 UTC
Configure created a Makefile that did not have my CFLAGS settings.
This is on Solaris 10, with the Sun Studio 12 tools.
Created attachment 3636 [details]
If you look at the beginning of the config.log file, you can see my CFLAGS settings are there.
Created attachment 3637 [details]
Makefile created by configure
This is the ../sources/Makefile created by configure. The CFLAGS settings that are listed at the beginning of the config.log file are not there.
The problem appears to be at line 11354 in configure:
if test "x$debug" = "xyes" ; then
The old CFLAGS is not being saved in the second part of the if statement. It should be:
Otherwise, if debug is not being set, all of the previous settings are being cleared except for the "-O" option.
Created attachment 3652 [details]
Can you try the attached patch?
Patch is upstream (already included in 3.3 series, will be included in 3.2.12).
Closing out bug report.
Thanks for reporting!