summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Loeser <halcy0n@gentoo.org>2005-09-17 19:45:35 +0000
committerMark Loeser <halcy0n@gentoo.org>2005-09-17 19:45:35 +0000
commit6e80200d148b62b824801c87e8934c335bd48191 (patch)
tree1f11650b4332b8f257150ebd2ac885ff4a3c55e5 /media-sound/audacity/files
parentFix my name spelling. (diff)
downloadgentoo-2-6e80200d148b62b824801c87e8934c335bd48191.tar.gz
gentoo-2-6e80200d148b62b824801c87e8934c335bd48191.tar.bz2
gentoo-2-6e80200d148b62b824801c87e8934c335bd48191.zip
Thanks to basic <basic AT mozdev DOT org> for the patch to fix compilation on x86. Marking ~x86 for testing. bug #73248
(Portage version: 2.0.52-r1)
Diffstat (limited to 'media-sound/audacity/files')
-rw-r--r--media-sound/audacity/files/audacity-1.2.3-x86.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/media-sound/audacity/files/audacity-1.2.3-x86.patch b/media-sound/audacity/files/audacity-1.2.3-x86.patch
new file mode 100644
index 000000000000..be98087980aa
--- /dev/null
+++ b/media-sound/audacity/files/audacity-1.2.3-x86.patch
@@ -0,0 +1,24 @@
+--- audacity-src-1.2.3/lib-src/soundtouch/source/SoundTouch/cpu_detect_x86_gcc.cpp.orig 2005-07-09 19:49:20.000000000 +0800
++++ audacity-src-1.2.3/lib-src/soundtouch/source/SoundTouch/cpu_detect_x86_gcc.cpp 2005-07-09 20:02:30.000000000 +0800
+@@ -86,6 +86,7 @@
+ "\n\txor %%esi, %%esi" // clear %%esi = result register
+ // check if 'cpuid' instructions is available by toggling eflags bit 21
+
++ "\n\tpushl %%ebx"
+ "\n\tpushf" // save eflags to stack
+ "\n\tpop %%eax" // load eax from stack (with eflags)
+ "\n\tmovl %%eax, %%ecx" // save the original eflags values to ecx
+@@ -130,11 +131,12 @@
+
+ "\n\tend:"
+
++ "\n\tpopl %%ebx"
+ "\n\tmov %%esi, %0"
+
+ : "=rm" (res)
+ : /* no inputs */
+- : "%edx", "%eax", "%ecx", "%ebx", "%esi" );
++ : "%edx", "%eax", "%ecx", "%esi" );
+
+ return res & ~_dwDisabledISA;
+ #endif