[subversion] - move PIE flag to Makefile

jorton jorton at fedoraproject.org
Tue Sep 7 13:37:10 UTC 2010


commit 17c76554275114fca4e45977ed21b4e94d0386c1
Author: Joe Orton <jorton at redhat.com>
Date:   Tue Sep 7 14:36:59 2010 +0100

    - move PIE flag to Makefile

 subversion.spec |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/subversion.spec b/subversion.spec
index 9d2ab09..9abae09 100644
--- a/subversion.spec
+++ b/subversion.spec
@@ -198,12 +198,10 @@ export svn_cv_ruby_sitedir_libsuffix=""
 export svn_cv_ruby_sitedir_archsuffix=""
 
 %ifarch sparc64
-pieflag=-fPIE
-%else
-pieflag=-fpie
+sed -i 's/-fpie/-fPIE/' Makefile.in
 %endif
 
-export CC=gcc CXX=g++ JAVA_HOME=%{jdk_path} CFLAGS="$RPM_OPT_FLAGS $pieflag"
+export CC=gcc CXX=g++ JAVA_HOME=%{jdk_path} CFLAGS="$RPM_OPT_FLAGS"
 %configure --with-apr=%{_prefix} --with-apr-util=%{_prefix} \
         --with-swig --with-neon=%{_prefix} \
         --with-ruby-sitedir=%{ruby_sitearch} \


More information about the scm-commits mailing list