summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure22
1 files changed, 16 insertions, 6 deletions
diff --git a/tools/configure b/tools/configure
index 7a04cecc9c..4d61d8e903 100755
--- a/tools/configure
+++ b/tools/configure
@@ -171,12 +171,20 @@ simcc () {
171 GCCOPTS="$GCCOPTS -I\$(SIMDIR)" 171 GCCOPTS="$GCCOPTS -I\$(SIMDIR)"
172 172
173 if test "X$crosscompile" != "Xyes"; then 173 if test "X$crosscompile" != "Xyes"; then
174 if [ "`uname -m`" = "x86_64" ] || [ "`uname -m`" = "amd64" ]; then 174 case `uname -m` in
175 # fPIC is needed to make shared objects link 175 x86_64|amd64)
176 # setting visibility to hidden is necessary to avoid strange crashes 176 # fPIC is needed to make shared objects link
177 # due to symbol clashing 177 # setting visibility to hidden is necessary to avoid strange crashes
178 GCCOPTS="$GCCOPTS -fPIC -fvisibility=hidden" 178 # due to symbol clashing
179 fi 179 GCCOPTS="$GCCOPTS -fPIC -fvisibility=hidden"
180 # x86_64 supports MMX by default
181 ;;
182
183 i686)
184 echo "Enabling MMX support"
185 GCCOPTS="$GCCOPTS -mmmx"
186 ;;
187 esac
180 188
181 id=$$ 189 id=$$
182 cat >$tmpdir/conftest-$id.c <<EOF 190 cat >$tmpdir/conftest-$id.c <<EOF
@@ -218,6 +226,8 @@ EOF
218 LDOPTS="-mconsole $sdl_libs" 226 LDOPTS="-mconsole $sdl_libs"
219 output="rockboxui.exe" # use this as output binary name 227 output="rockboxui.exe" # use this as output binary name
220 endian="little" # windows is little endian 228 endian="little" # windows is little endian
229 echo "Enabling MMX support"
230 GCCOPTS="$GCCOPTS -mmmx"
221 fi 231 fi
222} 232}
223 233