diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-01-08 05:53:40 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-01-08 05:53:40 +0000 |
commit | 1f42ad1f77c593fa33ccac0b9c4776ee9278bec6 (patch) | |
tree | b992a0824ab4dde51275d1836f4e2b124476ca76 /dev-games/ode/files | |
parent | config fix (diff) | |
download | historical-1f42ad1f77c593fa33ccac0b9c4776ee9278bec6.tar.gz historical-1f42ad1f77c593fa33ccac0b9c4776ee9278bec6.tar.bz2 historical-1f42ad1f77c593fa33ccac0b9c4776ee9278bec6.zip |
Add patch to enable building with PIC #77079 by lukenshiro@ngi.it.
Diffstat (limited to 'dev-games/ode/files')
-rw-r--r-- | dev-games/ode/files/0.5-PIC.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-games/ode/files/0.5-PIC.patch b/dev-games/ode/files/0.5-PIC.patch new file mode 100644 index 000000000000..b4fb9aaaa692 --- /dev/null +++ b/dev-games/ode/files/0.5-PIC.patch @@ -0,0 +1,18 @@ +Make sure we don't clobber %ebx (important with PIC). + +http://bugs.gentoo.org/show_bug.cgi?id=77079 + +--- ode-0.5/ode/src/timer.cpp.orig 2005-01-08 00:42:12.799324632 -0500 ++++ ode-0.5/ode/src/timer.cpp 2005-01-08 00:42:38.347440728 -0500 +@@ -118,8 +118,10 @@ + { + asm volatile ( + "mov $0,%%eax\n" ++ "pushl %%ebx\n" + "cpuid\n" +- : : : "%eax","%ebx","%ecx","%edx","cc","memory"); ++ "popl %%ebx\n" ++ : : : "%eax","%ecx","%edx","cc","memory"); + } + + |