summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Jackson <ajax@fedoraproject.org>2007-11-12 18:44:13 +0000
committerAdam Jackson <ajax@fedoraproject.org>2007-11-12 18:44:13 +0000
commita9b66a20a73d7f2027a054393e714826ea853473 (patch)
tree98fb1314bea65ffc45d88685027e2bc6de2672e8
parent8706975e218650f2ca1adc5f0416b72b899f6f66 (diff)
downloadmesa-a9b66a20a73d7f2027a054393e714826ea853473.tar.gz
mesa-a9b66a20a73d7f2027a054393e714826ea853473.tar.xz
mesa-a9b66a20a73d7f2027a054393e714826ea853473.zip
-rw-r--r--mesa.spec11
1 files changed, 5 insertions, 6 deletions
diff --git a/mesa.spec b/mesa.spec
index 1c11909..370e74d 100644
--- a/mesa.spec
+++ b/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.
export OPT_FLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fvisibility=hidden -fPIC"
export DRI_DRIVER_DIR="%{_libdir}/dri"
-# export LIB_DIR=%{_lib}
mkdir preserve
for t in osmesa osmesa16 osmesa32; do
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
- make -s realclean
+ make -s realclean LIB_DIR=lib
done
echo "Building %{dri_target}"
-make %{?_smp_mflags} %{dri_target} OPT_FLAGS="${OPT_FLAGS}"
-make -C progs/xdemos glxgears glxinfo OPT_FLAGS="${OPT_FLAGS}"
-make -C progs/demos 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}" LIB_DIR=lib
+make -C progs/demos OPT_FLAGS="${OPT_FLAGS}" LIB_DIR=lib
mv preserve/* lib
ln -s libOSMesa.so.6 lib/libOSMesa.so
ln -s libOSMesa16.so.6 lib/libOSMesa16.so