aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xlinden/scripts/linux/0-patch-SL-source31
-rwxr-xr-xlinden/scripts/linux/1-get-libraries-from-SL71
-rwxr-xr-xlinden/scripts/linux/2-trim-libraries-from-SL247
-rwxr-xr-xlinden/scripts/linux/3-compile-SL-source100
-rw-r--r--linden/scripts/linux/README.txt24
-rw-r--r--linden/scripts/linux/config-SL-source63
6 files changed, 536 insertions, 0 deletions
diff --git a/linden/scripts/linux/0-patch-SL-source b/linden/scripts/linux/0-patch-SL-source
new file mode 100755
index 0000000..4885d5d
--- /dev/null
+++ b/linden/scripts/linux/0-patch-SL-source
@@ -0,0 +1,31 @@
1#!/bin/bash
2
3# Check for patches to apply. The names of the patches must be in the form
4# slviewer-*.patch* (Example: slviewer-v117-EmbbededNotecard.patch.bz2).
5# They must be applicable from inside the source directory with the -p1
6# option, i.e. they have been built from outside the source directory
7# with a diff command such as:
8# diff -urN linden/ linden-patched/ >slviewer-whatever.patch
9# And they may be gzipped or bzipped.
10
11source config-SL-source
12
13PATCHES=`/bin/ls $PATH_TO_PATCHES/$1/slviewer-*.patch* 2>/dev/null`
14PATCHES="$PATCHES `/bin/ls $PATH_TO_PATCHES/$1/slviewer-*.diff* 2>/dev/null`"
15if [ "$PATCHES" != "" ] ; then
16 echo "Applying patches..."
17 cd $PATH_TO_SOURCES
18 for i in $PATCHES; do
19 echo "Patch: $i"
20 if echo $i | grep ".gz" &>/dev/null ; then
21 gunzip -c $i | patch -p1 -s
22 elif echo $i | grep ".bz2" &>/dev/null ; then
23 bzcat $i | patch -p1 -s
24 elif echo $i | grep ".zip" &>/dev/null ; then
25 unzip -o $i >/dev/null
26 else
27 patch -p1 -s <$i
28 fi
29 done
30fi
31
diff --git a/linden/scripts/linux/1-get-libraries-from-SL b/linden/scripts/linux/1-get-libraries-from-SL
new file mode 100755
index 0000000..9ba61f4
--- /dev/null
+++ b/linden/scripts/linux/1-get-libraries-from-SL
@@ -0,0 +1,71 @@
1#!/bin/bash
2
3# cmake-SL v1.31 (c)2008-2009 Henri Beauchamp. Released under GPL license v2:
4# http://www.gnu.org/licenses/gpl.txt
5
6###############################################################################
7######## THIS IS QUICK'N DIRTY ALPHA SOFTWARE. USE AT YOUR OWN RISKS ! ########
8###############################################################################
9
10###############################################################################
11# BEWARE: this script is meant to compile a -personal- SL client. It is -NOT- #
12# suitable to build client versions meant for public release, because #
13# non-open source code is packaged by this script. #
14###############################################################################
15
16# This bash script is aimed at easying up the build process of a SL client
17# with cmake.
18# You may enable or disable the use of your system's library by editing
19# the USE_SYSTEM_* variable ("yes" --> use the system library, "no" --> use
20# LL's provided ones).
21# The script also takes care of updating properly the viewer_manifest.py script
22# accordingly, so that you (should) end up with a properly packaged client.
23
24# To use this script, simply make it executable (chmod +x cmake-SL) and
25# put it into /usr/local/bin (or any other directory in your PATH).
26# Then, download the slviewer-src-*.tar.gz, slviewer-linux-libs-*.tar.gz,
27# slviewer-artwork-*.zip and fmodapi*.tar.gz archives, and finally, invoke
28# make-SL as follow:
29# cmake-SL path_to_archives (example: make-SL ~/downloads)
30# or simply:
31# cmake-SL
32# when invoking from the directory where the archives are.
33# The sources will be installed into the PATH_TO_SOURCES directory,
34# and the client will be built into the TEMP_DIR directory.
35# The packaged build will be moved to your home directory.
36#
37# If you want to retry a compilation after fixing something manually and
38# don't want cmake-SL to start all over again, overwriting everything,
39# you may invoke it with the --retry option, like this:
40# cmake-SL --retry
41#
42# Finally, if you just want to prepare the sources without starting the
43# compilation, use:
44# cmake-SL [path_to_archives] --prep
45#
46# This script has been tested by the author, on (very customized)
47# Mandriva 2007.1 and 2009.0 distros.
48# Tested with SL v1.21 and v1.22 sources.
49
50source config-SL-source
51
52
53cd $PATH_TO_SOURCES/indra
54
55# Do a clean build
56./develop.py clean
57
58# Force the vectorization use if we chose so.
59if [ "$FORCE_VECTORIZE" == "yes" ] ; then
60 TUNE_FLAGS="$TUNE_FLAGS -DLL_VECTORIZE=1"
61fi
62if [ "$ALLOW_WARNINGS" == "yes" ] ; then
63 FATAL_WARNINGS="-DGCC_DISABLE_FATAL_WARNINGS:BOOL=TRUE"
64else
65 FATAL_WARNINGS=""
66fi
67# Configure the sources and download the LL provided libraries:
68./develop.py --type=Release configure "$FATAL_WARNINGS" \
69 -DCMAKE_C_FLAGS:STRING="-O2 $TUNE_FLAGS" -DCMAKE_CXX_FLAGS:STRING="-O2 $TUNE_FLAGS" \
70 -DCMAKE_C_FLAGS_RELEASE:STRING="-O2 $TUNE_FLAGS" -DCMAKE_CXX_FLAGS_RELEASE:STRING="-O2 $TUNE_FLAGS" \
71 -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="-g -O2 $TUNE_FLAGS" -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="-g -O2 $TUNE_FLAGS"
diff --git a/linden/scripts/linux/2-trim-libraries-from-SL b/linden/scripts/linux/2-trim-libraries-from-SL
new file mode 100755
index 0000000..f86f0d8
--- /dev/null
+++ b/linden/scripts/linux/2-trim-libraries-from-SL
@@ -0,0 +1,247 @@
1#!/bin/bash
2
3# You may enable or disable the use of your system's library by editing
4# the USE_SYSTEM_* variable ("yes" --> use the system library, "no" --> use
5# LL's provided ones).
6# The script also takes care of updating properly the viewer_manifest.py script
7# accordingly, so that you (should) end up with a properly packaged client.
8
9source config-SL-source
10
11
12########### functions definitions ###########
13
14function check() {
15 if [ "$1" != "no" ] ; then
16 if [ -f $2 ] ; then
17 echo "Using the system $3..."
18 return 0
19 else
20 echo "WARNING: system $3 requested but not available..."
21 fi
22 fi
23 return 1
24}
25
26function update_manifest() {
27 grep -v $1 $PATH_TO_SOURCES/indra/newview/viewer_manifest.py >$TEMP_DIR/viewer_manifest.py
28 mv -f $TEMP_DIR/viewer_manifest.py $PATH_TO_SOURCES/indra/newview/viewer_manifest.py
29 chmod +x $PATH_TO_SOURCES/indra/newview/viewer_manifest.py
30}
31
32########### end of functions ###########
33
34if [ "$TEMP_DIR" == "" ] ; then
35 export TEMP_DIR="/usr/tmp/$USER"
36fi
37
38# Use the parameter (if any) as the path to the archives:
39
40PATH_TO_ARCHIVES=`pwd`
41if [ "$1" != "" ] && [ "$1" != "--prep" ] ; then
42 if [ -d $1 ] ; then
43 PATH_TO_ARCHIVES=$1
44 shift
45 fi
46fi
47
48cd $PATH_TO_SOURCES/indra
49
50
51# Force the vectorization use if we chose so.
52if [ "$FORCE_VECTORIZE" == "yes" ] ; then
53 TUNE_FLAGS="$TUNE_FLAGS -DLL_VECTORIZE=1"
54fi
55if [ "$ALLOW_WARNINGS" == "yes" ] ; then
56 FATAL_WARNINGS="-DGCC_DISABLE_FATAL_WARNINGS:BOOL=TRUE"
57else
58 FATAL_WARNINGS=""
59fi
60
61# Let's use the system GTK+ if available:
62if check $USE_SYSTEM_GTK /usr/include/atk-1.0/atk/atk.h "GTK+" ; then
63 cd $PATH_TO_SOURCES/libraries/x86_64-linux/lib_release_client
64 rm -f libgtk* libgdk* libglib* libgmodule* libgobject* libgthread* libpango* libatk*
65 cd ../include
66 rm -rf atk-1.0/ gtk-2.0/ glib-2.0/ pango-1.0/
67 cp -a /usr/include/atk-1.0 .
68 cp -a /usr/include/gtk-2.0 .
69 cp -a /usr/lib/gtk-2.0/include/* gtk-2.0/
70 cp -a /usr/include/glib-2.0 .
71 cp -a /usr/lib/glib-2.0/include/* glib-2.0/
72 cp -a /usr/include/pango-1.0 .
73 if [ -d /usr/include/cairo ] ; then
74 rm -rf cairo/
75 cp -a /usr/include/cairo .
76 cd ../lib_release_client
77 rm -f libcairo*
78 fi
79 update_manifest libatk
80 update_manifest cairo
81 update_manifest libgtk
82 update_manifest libgdk
83 update_manifest libglib
84 update_manifest libgmodule
85 update_manifest libgobject
86 update_manifest libgthread
87 update_manifest libpango
88fi
89
90# Let's use the system zlib if available:
91if check $USE_SYSTEM_ZLIB /usr/include/zlib.h "zlib" ; then
92 cd $PATH_TO_SOURCES/libraries
93 rm -rf include/zlib/
94 rm -f x86_64-linux/lib_release_client/libz.so.1
95 mkdir -p include/zlib
96 cp -a /usr/include/zlib*.h include/zlib/
97fi
98
99# Let's use the system jpeglib if available:
100if check $USE_SYSTEM_JPEGLIB /usr/include/jpeglib.h "jpeglib" ; then
101 cd $PATH_TO_SOURCES/libraries
102 rm -rf include/jpeglib/ x86_64-linux/lib_release_client/libjpeg.a
103 mkdir -p include/jpeglib
104 cp -a /usr/include/j*.h include/jpeglib/
105 touch include/jpeglib/jinclude.h
106fi
107
108# Let's use the system ogg if available:
109if check $USE_SYSTEM_OGG /usr/include/ogg/ogg.h "ogg" ; then
110 cd $PATH_TO_SOURCES/libraries
111 rm -rf include/ogg/ x86_64-linux/lib_release_client/libogg*
112fi
113
114# Let's use the system vorbis if available:
115if check $USE_SYSTEM_VORBIS /usr/include/vorbis/vorbisenc.h "vorbis" ; then
116 cd $PATH_TO_SOURCES/libraries
117 rm -rf include/vorbis/ x86_64-linux/lib_release_client/libvorbis*
118fi
119
120# Let's use the system SDL if available:
121if check $USE_SYSTEM_SDL /usr/include/SDL/SDL.h "SDL" ; then
122 cd $PATH_TO_SOURCES/libraries/x86_64-linux
123 rm -rf include/SDL/ lib_release_client/libSDL*
124 update_manifest libSDL
125fi
126
127# Let's use the system openssl if available:
128if check $USE_SYSTEM_SSL /usr/include/openssl/opensslconf.h "openssl" ; then
129 cd $PATH_TO_SOURCES/libraries/x86_64-linux/lib_release_client
130 rm -f libssl.* libcrypto.*
131 update_manifest libssl
132 update_manifest libcrypto
133fi
134
135# Let's use the system apr if available:
136if check $USE_SYSTEM_APR /usr/include/apr*/apr_base64.h "apr" ; then
137 cd $PATH_TO_SOURCES/libraries/x86_64-linux
138 rm -rf include/apr-1/*
139 rm -f lib_release_client/libapr*
140 cp -a /usr/include/apr*/* include/apr-1/
141 update_manifest libapr
142fi
143
144# Let's use the system db4 if available:
145if check $USE_SYSTEM_DB4 /usr/include/db4/db.h "db4" ; then
146 rm -f $PATH_TO_SOURCES/libraries/x86_64-linux/lib_release_client/libdb*.so
147 update_manifest libdb
148 if [ $USE_SYSTEM_DB4 != "yes" ] ; then
149 if ! grep $USE_SYSTEM_DB4 $PATH_TO_SOURCES/indra/cmake/BerkeleyDB.cmake ; then
150 # If we gave a version number instead of "yes", patch the
151 # BerkeleyDB.cmake file to use that DB4 version instead of 4.2.
152 sed -e "s/4.2/$USE_SYSTEM_DB4/" $PATH_TO_SOURCES/indra/cmake/BerkeleyDB.cmake >$TEMP_DIR/BerkeleyDB.cmake
153 mv -f $TEMP_DIR/BerkeleyDB.cmake $PATH_TO_SOURCES/indra/cmake/BerkeleyDB.cmake
154 fi
155 fi
156fi
157
158# Let's use the system expat if available:
159if check $USE_SYSTEM_EXPAT /usr/include/expat.h "expat" ; then
160 cd $PATH_TO_SOURCES/libraries
161 rm -rf include/expat/
162 rm -f x86_64-linux/lib_release_client/libexpat*
163 mkdir -p include/expat
164 cp -a /usr/include/expat*.h include/expat/
165 update_manifest libexpat
166fi
167
168# Let's use the system xmlrpc-epi if available:
169if check $USE_SYSTEM_XMLRPC /usr/include/xmlrpc.h "xmlrpc-epi" ; then
170 cd $PATH_TO_SOURCES/libraries
171 rm -rf include/xmlrpc-epi/ x86_64-linux/lib_release_client/libxmlrpc.a
172 mkdir -p include/xmlrpc-epi
173 cp -a /usr/include/xmlrpc*.h include/xmlrpc-epi/
174fi
175
176# Let's use the system c-ares if available:
177if check $USE_SYSTEM_CARES /usr/lib/libcares.a "c-ares" ; then
178 cd $PATH_TO_SOURCES/libraries
179 rm -f include/ares/*
180 rm -f x86_64-linux/lib_release_client/libcares.*
181 cp -a /usr/include/ares* include/ares/
182 cp -a /usr/lib/libcares.a x86_64-linux/lib_release_client/
183fi
184
185# Let's use the system curl if available:
186if check $USE_SYSTEM_CURL /usr/include/curl/curl.h "curl" ; then
187 cd $PATH_TO_SOURCES/libraries
188 rm -rf include/curl/
189 rm -f x86_64-linux/lib_release_client/libcurl.*
190fi
191
192# Let's use the system uuid if available:
193if check $USE_SYSTEM_UUID /lib/libuuid.so.1 "libuuid" ; then
194 rm -f $PATH_TO_SOURCES/libraries/x86_64-linux/lib_release_client/libuuid.*
195 update_manifest libuuid
196fi
197
198# Let's use the system google-perftools if available:
199if check $USE_SYSTEM_PERFTOOLS /usr/include/google/malloc_hook.h "google-perftools" ; then
200 cd $PATH_TO_SOURCES/libraries/x86_64-linux
201 rm -f lib_release_client/libtcmalloc.* lib_release_client/libstacktrace.*
202 rm -rf include/google/
203 cp -a /usr/lib/libstacktrace.* /usr/lib/libtcmalloc.so* lib_release_client/
204 cp -a /usr/include/google include/
205 update_manifest tcmalloc
206 update_manifest stacktrace
207fi
208
209# Let's use the system libELFIO if available:
210if check $USE_SYSTEM_ELFIO /usr/include/ELFIO.h "libELFIO" ; then
211 cd $PATH_TO_SOURCES/libraries/x86_64-linux
212 rm -f include/ELFIO/*
213 rm -f lib_release_client/libELFIO.*
214 cp -af /usr/include/ELF* include/ELFIO/
215 cp -af /usr/lib/libELFIO.so lib_release_client/
216 update_manifest ELFIO
217fi
218
219# Let's use the system libstdc++ if available:
220if check $USE_SYSTEM_LIBSTDC /usr/lib/libstdc++.so.6 "libstdc++" ; then
221 rm -f $PATH_TO_SOURCES/libraries/x86_64-linux/lib_release_client/libstdc++.*
222 update_manifest libstdc
223fi
224
225# Let's use the system boost if available:
226if check $USE_SYSTEM_BOOST /usr/include/boost/version.hpp "boost" ; then
227 cd $PATH_TO_SOURCES/libraries
228 rm -rf include/boost/
229 rm -f x86_64-linux/lib_release/libboost_*
230 rm -f x86_64-linux/lib_release_client/libboost_*
231fi
232
233
234# Force libkdu inclusion
235# (disabled for now (v1.21.0 viewer) as the cmake scripts fail to get libkdu from Internet).
236if false; then
237# Remove everything dealing with libstdc++ and the crash logger:
238update_manifest libstdc
239update_manifest logger
240# Now, any line with a '#' followed with several spaces _should_ be dealing
241# with the libkdu stuff... So, we simply remove the '#"...
242sed -e "s/# them/# them/" $PATH_TO_SOURCES/indra/newview/viewer_manifest.py >$TEMP_DIR/viewer_manifest.py
243sed -e "s/^# / /" $TEMP_DIR/viewer_manifest.py >$PATH_TO_SOURCES/indra/newview/viewer_manifest.py
244rm -f $TEMP_DIR/viewer_manifest.py
245chmod +x $PATH_TO_SOURCES/indra/newview/viewer_manifest.py
246fi
247
diff --git a/linden/scripts/linux/3-compile-SL-source b/linden/scripts/linux/3-compile-SL-source
new file mode 100755
index 0000000..9a898ad
--- /dev/null
+++ b/linden/scripts/linux/3-compile-SL-source
@@ -0,0 +1,100 @@
1#!/bin/bash
2
3# cmake-SL v1.31 (c)2008-2009 Henri Beauchamp. Released under GPL license v2:
4# http://www.gnu.org/licenses/gpl.txt
5
6###############################################################################
7######## THIS IS QUICK'N DIRTY ALPHA SOFTWARE. USE AT YOUR OWN RISKS ! ########
8###############################################################################
9
10###############################################################################
11# BEWARE: this script is meant to compile a -personal- SL client. It is -NOT- #
12# suitable to build client versions meant for public release, because #
13# non-open source code is packaged by this script. #
14###############################################################################
15
16# This bash script is aimed at easying up the build process of a SL client
17# with cmake.
18# You may enable or disable the use of your system's library by editing
19# the USE_SYSTEM_* variable ("yes" --> use the system library, "no" --> use
20# LL's provided ones).
21# The script also takes care of updating properly the viewer_manifest.py script
22# accordingly, so that you (should) end up with a properly packaged client.
23
24# To use this script, simply make it executable (chmod +x cmake-SL) and
25# put it into /usr/local/bin (or any other directory in your PATH).
26# Then, download the slviewer-src-*.tar.gz, slviewer-linux-libs-*.tar.gz,
27# slviewer-artwork-*.zip and fmodapi*.tar.gz archives, and finally, invoke
28# make-SL as follow:
29# cmake-SL path_to_archives (example: make-SL ~/downloads)
30# or simply:
31# cmake-SL
32# when invoking from the directory where the archives are.
33# The sources will be installed into the PATH_TO_SOURCES directory,
34# and the client will be built into the TEMP_DIR directory.
35# The packaged build will be moved to your home directory.
36#
37# If you want to retry a compilation after fixing something manually and
38# don't want cmake-SL to start all over again, overwriting everything,
39# you may invoke it with the --retry option, like this:
40# cmake-SL --retry
41#
42# Finally, if you just want to prepare the sources without starting the
43# compilation, use:
44# cmake-SL [path_to_archives] --prep
45#
46# This script has been tested by the author, on (very customized)
47# Mandriva 2007.1 and 2009.0 distros.
48# Tested with SL v1.21 and v1.22 sources.
49
50source config-SL-source
51
52########### functions definitions ###########
53
54function compile() {
55 cd $PATH_TO_SOURCES/indra
56 echo "Compiling the client into $TEMP_DIR..."
57 nice -n 19 ionice -c 3 time ./develop.py --type=Release build
58# if (($? == 0)) ; then
59# mv -f $PATH_TO_SOURCES/indra/viewer-linux-i686*/newview/SecondLife*.tar.bz2 $HOME/
60# fi
61}
62
63########### end of functions ###########
64
65if [ "$TEMP_DIR" == "" ] ; then
66 export TEMP_DIR="/usr/tmp/$USER"
67fi
68
69# Check to see if we simply want to retry a compilation:
70if [ "$1" == "--retry" ] ; then
71 compile
72 exit $?
73fi
74
75# Use the parameter (if any) as the path to the archives:
76
77PATH_TO_ARCHIVES=`pwd`
78if [ "$1" != "" ] && [ "$1" != "--prep" ] ; then
79 if [ -d $1 ] ; then
80 PATH_TO_ARCHIVES=$1
81 shift
82 fi
83fi
84
85cd $PATH_TO_SOURCES/indra
86
87# Do a clean build
88#./develop.py clean
89
90# Force the vectorization use if we chose so.
91if [ "$FORCE_VECTORIZE" == "yes" ] ; then
92 TUNE_FLAGS="$TUNE_FLAGS -DLL_VECTORIZE=1"
93fi
94if [ "$ALLOW_WARNINGS" == "yes" ] ; then
95 FATAL_WARNINGS="-DGCC_DISABLE_FATAL_WARNINGS:BOOL=TRUE"
96else
97 FATAL_WARNINGS=""
98fi
99
100compile
diff --git a/linden/scripts/linux/README.txt b/linden/scripts/linux/README.txt
new file mode 100644
index 0000000..f1e150f
--- /dev/null
+++ b/linden/scripts/linux/README.txt
@@ -0,0 +1,24 @@
1How to build a linux version.
2
3Edit config-SL-source to suit, the one that comes with the meta 7 viewer
4is the one used to build the linux release.
5
6Run the scripts in order -
7
80-patch-SL-source
91-get-libraries-from-SL
102-trim-libraries-from-SL
113-compile-SL-source
12
13The patch script should do nothing unless you have setup patches, so you
14can skip it. The get-libraries script needs a working network
15connection, it fetches pre built libraries. It also sets up the build.
16Trim-libraries removes those pre built libraries again if you configured
17things to not use them. The compile script does the actual work.
18Usually when making changes, only the compile script needs to be run
19again.
20
21
22These scripts are based on cmake-SL v1.31 (c)2008-2009 Henri Beauchamp.
23Released under GPL license v2: http://www.gnu.org/licenses/gpl.txt
24Modifications made by David Seikel.
diff --git a/linden/scripts/linux/config-SL-source b/linden/scripts/linux/config-SL-source
new file mode 100644
index 0000000..174d7d4
--- /dev/null
+++ b/linden/scripts/linux/config-SL-source
@@ -0,0 +1,63 @@
1# cmake-SL v1.31 (c)2008-2009 Henri Beauchamp. Released under GPL license v2:
2# http://www.gnu.org/licenses/gpl.txt
3
4
5# You may enable or disable the use of your system's library by editing
6# the USE_SYSTEM_* variable ("yes" --> use the system library, "no" --> use
7# LL's provided ones).
8# The script also takes care of updating properly the viewer_manifest.py script
9# accordingly, so that you (should) end up with a properly packaged client.
10
11PWD=`pwd`
12
13# Where the sources of the client will be held (defaults to "./linden"):
14PATH_TO_SOURCES="$PWD/../.."
15# Where the patches of the client are stored
16PATH_TO_PATCHES="$PWD/../../patches"
17# Where to store temporary files:
18TEMP_DIR="/tmp/SL-$USER"
19mkdir -p $TEMP_DIR
20
21USE_SYSTEM_GTK="no"
22USE_SYSTEM_SDL="no"
23USE_SYSTEM_SSL="no"
24# Beware: libdb4 makes use of libapr, libapr makes use of libexpat and
25# libxmlrc-epi makes use of libexpat... so you should keep USE_SYSTEM_APR,
26# USE_SYSTEM_DB4, USE_SYSTEM_EXPAT and USE_SYSTEM_XMLRPC in sync.
27USE_SYSTEM_APR="no"
28USE_SYSTEM_EXPAT="no"
29USE_SYSTEM_XMLRPC="no"
30# Note: you may specify a version number (example: 4.6) instead of "yes"
31# in USE_SYSTEM_DB4 (by default the cmake scripts will attempt to link
32# against DB4.2 only and would fail when set to "yes" if this is not the
33# version installed on your system.
34USE_SYSTEM_DB4="no"
35# You should keep the USE_SYSTEM_CARES setting in sync with the USE_SYSTEM_CURL
36# setting further below...
37USE_SYSTEM_CARES="no"
38# If your system libcurl does not use c-ares (non-blocking DNS calls), better
39# using LL's provided library...
40USE_SYSTEM_CURL="no"
41USE_SYSTEM_OGG="no"
42USE_SYSTEM_ZLIB="no"
43USE_SYSTEM_UUID="no"
44USE_SYSTEM_VORBIS="no"
45USE_SYSTEM_JPEGLIB="no"
46USE_SYSTEM_PERFTOOLS="no"
47USE_SYSTEM_ELFIO="no"
48# When compiling against anything newer than glibc v2.4, do use "yes" here:
49USE_SYSTEM_LIBSTDC="yes"
50# Seems that current viewers don't actually like the boost that LL uses. Probaly best to set this to "yes"
51USE_SYSTEM_BOOST="no"
52
53# You may add tune flags here, to optimize the code for your processor.
54# Example, for an Athlon XP:
55# TUNE_FLAGS="-march=athlon-xp"
56TUNE_FLAGS="-fomit-frame-pointer -frename-registers -ftree-vectorize -fweb -fexpensive-optimizations -msse -mfpmath=sse"
57# Set this to "yes" to force vectorization use in the viewer code (only for
58# processors with SSE or Altivec units, and only if you did enable them via
59# the TUNE_FLAGS.
60FORCE_VECTORIZE="yes"
61
62# When using gcc v4.3 or later, you might have to set this to yes...
63ALLOW_WARNINGS="yes"