- move PIE flag to Makefile
This commit is contained in:
parent
9f9154686d
commit
17c7655427
@ -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} \
|
||||||
|
Loading…
Reference in New Issue
Block a user