patch configure.ac to compile -O2 instead of -O0 on Linux.
This commit is contained in:
parent
2cd9c4e4c8
commit
4c40b04359
11
configure.ac.patch
Normal file
11
configure.ac.patch
Normal file
@ -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)\\\""
|
@ -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 <kkeithle@redhat.com> - 3.2.5-7
|
||||
- patch configure.ac to compile -O2 instead of -O0 on Linux.
|
||||
|
||||
* Tue Jan 10 2012 Kaleb S. KEITHLEY <kkeithle@redhat.com> - 3.2.5-6
|
||||
- glusterd.init use /run per Fedora File System Layout, or /var/run when
|
||||
needed
|
||||
|
Loading…
Reference in New Issue
Block a user