summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-08-30 09:27:24 -0600
committerVolker Lendecke <vl@samba.org>2010-08-30 16:40:28 +0200
commit5f419eaa3289903a44c34fa1280e51bc197c65f3 (patch)
tree4a9e197da2c803e4c17a386916dffe2c8a4bf463
parentebf05a1db3aa9310884d523083bf2026df837691 (diff)
downloadsamba-5f419eaa3289903a44c34fa1280e51bc197c65f3.tar.gz
samba-5f419eaa3289903a44c34fa1280e51bc197c65f3.tar.bz2
samba-5f419eaa3289903a44c34fa1280e51bc197c65f3.zip
packaging: Build with -O3
-rwxr-xr-xpackaging/RHEL-CTDB/configure.rpm2
-rw-r--r--packaging/RHEL-CTDB/samba.spec.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/packaging/RHEL-CTDB/configure.rpm b/packaging/RHEL-CTDB/configure.rpm
index 61276f83c9..527b14f131 100755
--- a/packaging/RHEL-CTDB/configure.rpm
+++ b/packaging/RHEL-CTDB/configure.rpm
@@ -26,7 +26,7 @@ fi
./autogen.sh
-CC="$CC" CFLAGS="-Wall -g -D_GNU_SOURCE" ./configure -C \
+CC="$CC" CFLAGS="-Wall -g -D_GNU_SOURCE -O3" ./configure -C \
--prefix=${_prefix} \
--localstatedir=/var \
--with-configdir=${_sysconfdir}/samba \
diff --git a/packaging/RHEL-CTDB/samba.spec.tmpl b/packaging/RHEL-CTDB/samba.spec.tmpl
index 8e7179c61e..fd5380f3c8 100644
--- a/packaging/RHEL-CTDB/samba.spec.tmpl
+++ b/packaging/RHEL-CTDB/samba.spec.tmpl
@@ -157,7 +157,7 @@ export CC
CC_SAVE="$CC"
CC="$CC -m32"
-CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -m32" ./configure \
+CFLAGS="$RPM_OPT_FLAGS -O3 -D_GNU_SOURCE -m32" ./configure \
--prefix=%{_prefix} \
--localstatedir=/var \
--with-configdir=%{_sysconfdir}/samba \