[ice] fix build on non-x86 64-bit architectures

Dan Horák sharkcz at fedoraproject.org
Mon Oct 31 13:04:29 UTC 2011


commit 262ae03809135e15a02f57565de9d38e1d58b747
Author: Dan Horák <dan at danny.cz>
Date:   Tue Sep 27 16:55:53 2011 +0200

    fix build on non-x86 64-bit architectures
    
    libsubdir is set to lib64 only on x86_64

 ice.spec |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/ice.spec b/ice.spec
index 9002e98..916e28b 100644
--- a/ice.spec
+++ b/ice.spec
@@ -214,7 +214,7 @@ export CLASSPATH=`build-classpath db jgoodies-forms jgoodies-looks`
 
 # Compile the main Ice runtime
 cd ${RPM_BUILD_DIR}/Ice-%{version}
-make CXXFLAGS="%{optflags} -fPIC" CFLAGS="%{optflags} -fPIC" embedded_runpath_prefix=""
+make CXXFLAGS="%{optflags} -fPIC" CFLAGS="%{optflags} -fPIC" embedded_runpath_prefix="" libsubdir=%{_lib}
 
 # Rebuild the Java ImportKey class
 cd ${RPM_BUILD_DIR}/Ice-%{version}/cpp/src/ca
@@ -235,7 +235,7 @@ mkdir -p $RPM_BUILD_ROOT
 
 # Do the basic "make install"
 cd $RPM_BUILD_DIR/Ice-%{version}
-make prefix=$RPM_BUILD_ROOT GACINSTALL=yes GAC_ROOT=$RPM_BUILD_ROOT%{_libdir} embedded_runpath_prefix="" install
+make prefix=$RPM_BUILD_ROOT GACINSTALL=yes GAC_ROOT=$RPM_BUILD_ROOT%{_libdir} embedded_runpath_prefix="" libsubdir=%{_lib} install
 
 ## install java bindings in the right place
 mkdir -p ${RPM_BUILD_ROOT}%{_javadir}


More information about the scm-commits mailing list