diff options
author | zuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-08 18:04:47 +0000 |
---|---|---|
committer | zuxy <zuxy@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-08 18:04:47 +0000 |
commit | bab14c11d7875b3c84cb8bfafd5c554e26541356 (patch) | |
tree | a24b70f3b47413569ffac1ec40ac8d1297e521a5 /configure | |
parent | a7aae21ad0506972cade99171949aeeabb86d3cd (diff) | |
download | mpv-bab14c11d7875b3c84cb8bfafd5c554e26541356.tar.bz2 mpv-bab14c11d7875b3c84cb8bfafd5c554e26541356.tar.xz |
Use -march=native (avail. since gcc 4.2) when possible
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24371 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1770,6 +1770,7 @@ cat > $TMPC << EOF int main(void) { return 0; } EOF if test "$_runtime_cpudetection" = no ; then + cc_check -march=native && proc=native if test "$proc" = "k8"; then cc_check -march=$proc $cpuopt=$proc || proc=athlon-xp fi @@ -1915,6 +1916,7 @@ int main(void) { return 0; } EOF # This is a stripped-down version of the i386 fallback. if test "$_runtime_cpudetection" = no ; then + cc_check -march=native && proc=native # --- AMD processors --- if test "$proc" = "k8"; then cc_check -march=$proc $cpuopt=$proc || proc=athlon-xp |