diff options
author | joerg <joerg@pkgsrc.org> | 2008-10-02 17:53:36 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-10-02 17:53:36 +0000 |
commit | 1aed2184493882a4cd7cc4a98a450e539dbd3424 (patch) | |
tree | 54cbae19da05d2a497c2b62c1b61a8d34ae0dd99 /devel/ode/patches | |
parent | 7b8d5f283e6d685b1bdf3bacf5e35bd6dc7dbae3 (diff) | |
download | pkgsrc-1aed2184493882a4cd7cc4a98a450e539dbd3424.tar.gz |
Disable pentium specific instructions, one reason being that it breaks
amd64 compilation.
Diffstat (limited to 'devel/ode/patches')
-rw-r--r-- | devel/ode/patches/patch-ac | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/devel/ode/patches/patch-ac b/devel/ode/patches/patch-ac new file mode 100644 index 00000000000..3c7e2600b90 --- /dev/null +++ b/devel/ode/patches/patch-ac @@ -0,0 +1,30 @@ +$NetBSD: patch-ac,v 1.1 2008/10/02 17:53:37 joerg Exp $ + +Avoid Pentium specific assembly for binary packages. Also breaks AMD64. + +--- configurator.c.orig 2008-10-02 19:50:59.000000000 +0200 ++++ configurator.c +@@ -219,23 +219,7 @@ void run (char *filename) + + void check_if_this_is_a_pentium (FILE *file) + { +- write_header_comment (file,"is this a pentium on a gcc-based platform?"); +- write_to_file ("ctest.cpp", +- "int main() {\n" +- " asm (\"mov $0,%%eax\\n cpuid\\n\" : : : \"%eax\");\n" +- " return 0;\n" +- "}\n"); +- delete_file ("ctest.exe"); +- compile ("ctest.exe","ctest.cpp"); +- if (file_exists ("ctest.exe")) { +- fprintf (file,"#define PENTIUM 1\n\n"); +- } +- else { + fprintf (file,"/* #define PENTIUM 1 -- not a pentium */\n\n"); +- } +- +- delete_file ("ctest.cpp"); +- delete_file ("ctest.exe"); + } + + /****************************************************************************/ |