packaging(RHEL-CTDB): don't pass CFLAGS to make.
authorMichael Adam <obnox@samba.org>
Mon, 29 Jun 2009 15:05:00 +0000 (17:05 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 13 Nov 2009 15:19:35 +0000 (16:19 +0100)
This breaks the build since 3.3 since it overwrites the CFLAGS
set by configure.

Michael

packaging/RHEL-CTDB/samba.spec.tmpl

index 758fed667518f93c5e6afb1c346e75e422d86553..f907cda7df2ffb4ce0c25fca217f9da36dc7ee17 100644 (file)
@@ -199,7 +199,7 @@ if [ ${CC_MAJOR} -ge 3 ]; then
         fi
 fi
 
-make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -m32" %{?_smp_mflags} \
+make %{?_smp_mflags} \
        nss_modules pam_modules
 
 rm -rf %{_32bit_tmp_dir}
@@ -263,7 +263,7 @@ if [ ${CC_MAJOR} -ge 3 ]; then
 fi
 
 
-make CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE" %{?_smp_mflags} \
+make %{?_smp_mflags} \
        all modules pam_smbpass
 
 # Remove some permission bits to avoid to many dependencies