[Samba] samba 3.2.1 build system not honoring CFLAGS

Uri Simchoni uris at activenas.com
Mon Aug 18 17:39:46 GMT 2008


Hi,

I was compiling samba 3.2.1 and noticed that the Makefile doesn't use the CFLAGS I gave it. After digging into the configure script I came up with this patch. I know configure is generated from configure.in, but I was also unable to run it through my autoconf 2.62 (tried it on another machine with autoconf 2.61 and it worked)

Uri.

--- configure   2008-08-17 01:16:13.000000000 +0300
+++ samba-3.2.1/source/configure        2008-08-17 01:20:32.000000000 +0300
@@ -11339,8 +11339,6 @@
 fi
 if test "x$debug" = "xyes" ; then
        CFLAGS="${CFLAGS} -g"
-else
-       CFLAGS="-O"
 fi

 CFLAGS="${CFLAGS} -D_SAMBA_BUILD_=3"



More information about the samba mailing list