From 80559657f824329fefc4b4fd75d2d5fb7afee0ff Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 12 Nov 2007 16:23:16 +0000 Subject: [PATCH] fix build on amd64 --- mesa.spec | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mesa.spec b/mesa.spec index b139894..e96d9f9 100644 --- a/mesa.spec +++ b/mesa.spec @@ -192,14 +192,14 @@ sed -i -e 's,"terrain.dat","%{_libdir}/mesa-demos-data/terrain.dat",' progs/demo # an aliasing problem, so we add -fno-strict-aliasing to the flags. export OPT_FLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fvisibility=hidden -fPIC" export DRI_DRIVER_DIR="%{_libdir}/dri" -export LIB_DIR=%{_lib} +# export LIB_DIR=%{_lib} mkdir preserve for t in osmesa osmesa16 osmesa32; do echo "Building $t" make %{?_smp_mflags} linux-$t - mv %{_lib}/* preserve + mv lib/* preserve make -s realclean done @@ -207,10 +207,10 @@ echo "Building %{dri_target}" make %{?_smp_mflags} %{dri_target} make -C progs/xdemos glxgears glxinfo make -C progs/demos -mv preserve/* %{_lib} -ln -s libOSMesa.so.6 %{_lib}/libOSMesa.so -ln -s libOSMesa16.so.6 %{_lib}/libOSMesa16.so -ln -s libOSMesa32.so.6 %{_lib}/libOSMesa32.so +mv preserve/* lib +ln -s libOSMesa.so.6 lib/libOSMesa.so +ln -s libOSMesa16.so.6 lib/libOSMesa16.so +ln -s libOSMesa32.so.6 lib/libOSMesa32.so pushd . cd ../%{manpages} @@ -232,7 +232,7 @@ install -m 644 include/GL/internal/dri_interface.h $RPM_BUILD_ROOT%{_includedir} rm -f $RPM_BUILD_ROOT%{_includedir}/GL/glfbdev.h install -d $RPM_BUILD_ROOT%{_libdir} -cp -d -f %{_lib}/lib* $RPM_BUILD_ROOT%{_libdir} +cp -d -f lib/lib* $RPM_BUILD_ROOT%{_libdir} install -d $RPM_BUILD_ROOT%{_bindir} install -m 0755 progs/xdemos/glxgears $RPM_BUILD_ROOT%{_bindir} @@ -247,7 +247,7 @@ install -m 0644 progs/demos/*.dat $RPM_BUILD_ROOT/%{_libdir}/mesa-demos-data %if %{with_dri} install -d $RPM_BUILD_ROOT%{_libdir}/dri for f in i810 i915 i915tex i965 mach64 mga r128 r200 r300 radeon savage sis tdfx unichrome; do - so=%{_lib}/${f}_dri.so + so=lib/${f}_dri.so test -e $so && echo $so done | xargs install -m 0755 -t $RPM_BUILD_ROOT%{_libdir}/dri >& /dev/null || : %endif