From 4c40b04359e3b40b2f448090fcb2eb8d0f0de481 Mon Sep 17 00:00:00 2001 From: Kaleb KEITHLEY Date: Mon, 16 Jan 2012 13:49:24 -0500 Subject: [PATCH] patch configure.ac to compile -O2 instead of -O0 on Linux. --- configure.ac.patch | 11 +++++++++++ glusterfs.spec | 7 ++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 configure.ac.patch diff --git a/configure.ac.patch b/configure.ac.patch new file mode 100644 index 0000000..122af1a --- /dev/null +++ b/configure.ac.patch @@ -0,0 +1,11 @@ +--- configure.ac.orig 2012-01-16 13:38:53.020000114 -0500 ++++ configure.ac 2012-01-16 13:39:29.177000589 -0500 +@@ -431,7 +431,7 @@ + linux*) + dnl GF_LINUX_HOST_OS=1 + GF_HOST_OS="GF_LINUX_HOST_OS" +- GF_CFLAGS="${ARGP_STANDALONE_CPPFLAGS} -O0" ++ GF_CFLAGS="${ARGP_STANDALONE_CPPFLAGS} -O2" + GF_GLUSTERFS_CFLAGS="${GF_CFLAGS}" + GF_LDADD="${ARGP_STANDALONE_LDADD}" + GF_FUSE_CFLAGS="-DFUSERMOUNT_DIR=\\\"\$(bindir)\\\"" diff --git a/glusterfs.spec b/glusterfs.spec index 88058b4..38f6f83 100644 --- a/glusterfs.spec +++ b/glusterfs.spec @@ -25,7 +25,7 @@ Summary: Cluster File System Name: glusterfs Version: 3.2.5 -Release: 6%{?dist} +Release: 7%{?dist} License: GPLv3 Group: System Environment/Base Vendor: Red Hat @@ -38,6 +38,7 @@ Source4: glusterfs-fuse.logrotate Source5: glusterd.logrotate Source6: glusterfsd.logrotate Patch0: libglusterfs.Makefile.patch +Patch1: configure.ac.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %if ( 0%{?fedora} && 0%{?fedora} < 17 ) || ( 0%{?rhel} && 0%{?rhel} < 7 ) @@ -205,6 +206,7 @@ This package provides the development libraries. %prep %setup -q -n %{name}-%{version} %patch0 -p0 +%patch1 -p0 %build ./autogen.sh @@ -391,6 +393,9 @@ if [ $1 -ge 1 ]; then fi %changelog +* Mon Jan 16 2012 Kaleb S. KEITHLEY - 3.2.5-7 +- patch configure.ac to compile -O2 instead of -O0 on Linux. + * Tue Jan 10 2012 Kaleb S. KEITHLEY - 3.2.5-6 - glusterd.init use /run per Fedora File System Layout, or /var/run when needed