- move PIE flag to Makefile

This commit is contained in:
Joe Orton 2010-09-07 14:36:59 +01:00
parent 9f9154686d
commit 17c7655427
1 changed files with 2 additions and 4 deletions

View File

@ -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} \