argh amd64
This commit is contained in:
parent
8706975e21
commit
a9b66a20a7
11
mesa.spec
11
mesa.spec
@ -192,21 +192,20 @@ 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.
|
# 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 OPT_FLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fvisibility=hidden -fPIC"
|
||||||
export DRI_DRIVER_DIR="%{_libdir}/dri"
|
export DRI_DRIVER_DIR="%{_libdir}/dri"
|
||||||
# export LIB_DIR=%{_lib}
|
|
||||||
|
|
||||||
mkdir preserve
|
mkdir preserve
|
||||||
|
|
||||||
for t in osmesa osmesa16 osmesa32; do
|
for t in osmesa osmesa16 osmesa32; do
|
||||||
echo "Building $t"
|
echo "Building $t"
|
||||||
make %{?_smp_mflags} linux-$t OPT_FLAGS="${OPT_FLAGS}"
|
make %{?_smp_mflags} linux-$t OPT_FLAGS="${OPT_FLAGS}" LIB_DIR=lib
|
||||||
mv lib/* preserve
|
mv lib/* preserve
|
||||||
make -s realclean
|
make -s realclean LIB_DIR=lib
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Building %{dri_target}"
|
echo "Building %{dri_target}"
|
||||||
make %{?_smp_mflags} %{dri_target} OPT_FLAGS="${OPT_FLAGS}"
|
make %{?_smp_mflags} %{dri_target} OPT_FLAGS="${OPT_FLAGS}" LIB_DIR=lib
|
||||||
make -C progs/xdemos glxgears glxinfo OPT_FLAGS="${OPT_FLAGS}"
|
make -C progs/xdemos glxgears glxinfo OPT_FLAGS="${OPT_FLAGS}" LIB_DIR=lib
|
||||||
make -C progs/demos OPT_FLAGS="${OPT_FLAGS}"
|
make -C progs/demos OPT_FLAGS="${OPT_FLAGS}" LIB_DIR=lib
|
||||||
mv preserve/* lib
|
mv preserve/* lib
|
||||||
ln -s libOSMesa.so.6 lib/libOSMesa.so
|
ln -s libOSMesa.so.6 lib/libOSMesa.so
|
||||||
ln -s libOSMesa16.so.6 lib/libOSMesa16.so
|
ln -s libOSMesa16.so.6 lib/libOSMesa16.so
|
||||||
|
Loading…
Reference in New Issue
Block a user