- move PIE flag to Makefile

This commit is contained in:
Joe Orton 2010-09-07 14:36:59 +01:00
parent 9f9154686d
commit 17c7655427

View File

@ -198,12 +198,10 @@ export svn_cv_ruby_sitedir_libsuffix=""
export svn_cv_ruby_sitedir_archsuffix="" export svn_cv_ruby_sitedir_archsuffix=""
%ifarch sparc64 %ifarch sparc64
pieflag=-fPIE sed -i 's/-fpie/-fPIE/' Makefile.in
%else
pieflag=-fpie
%endif %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} \ %configure --with-apr=%{_prefix} --with-apr-util=%{_prefix} \
--with-swig --with-neon=%{_prefix} \ --with-swig --with-neon=%{_prefix} \
--with-ruby-sitedir=%{ruby_sitearch} \ --with-ruby-sitedir=%{ruby_sitearch} \