Package: jamvm
Severity: important
Version: 1.4.4-1
Tags: patch
Hi,
the current version fails to build on kfreebsd-amd64.
It needs a small tweak to configure.ac/configure
and to src/os/linux/x86_64/init.c, see bellow.
It would also be nice if you can ask upstream
to include this changes.
Thanks in advance
Petr
--- configure.ac~ 2007-01-16 13:48:52.000000000 +0100
+++ configure.ac 2007-01-16 13:48:52.000000000 +0100
@@ -12,6 +12,7 @@
i386-*-openbsd*) host_os=bsd libdl_needed=no ;;
i386-*-freebsd*) host_os=bsd libdl_needed=no ;;
x86_64-*-linux*) host_os=linux ;;
+x86_64-*-kfreebsd*) host_os=linux ;;
hppa*-*-linux*) host_cpu=parisc host_os=linux ;;
amd64-*-openbsd*) host_os=bsd libdl_needed=no ;;
amd64-*-freebsd*) host_os=bsd libdl_needed=no ;;
--- configure~ 2007-01-16 13:49:15.000000000 +0100
+++ configure 2007-01-16 13:49:16.000000000 +0100
@@ -2029,6 +2029,7 @@
i386-*-openbsd*) host_os=bsd libdl_needed=no ;;
i386-*-freebsd*) host_os=bsd libdl_needed=no ;;
x86_64-*-linux*) host_os=linux ;;
+x86_64-*-kfreebsd*) host_os=linux ;;
hppa*-*-linux*) host_cpu=parisc host_os=linux ;;
amd64-*-openbsd*) host_os=bsd libdl_needed=no ;;
amd64-*-freebsd*) host_os=bsd libdl_needed=no ;;
--- src/os/linux/x86_64/init.c~ 2007-01-16 15:08:00.000000000 +0100
+++ src/os/linux/x86_64/init.c 2007-01-16 15:08:00.000000000 +0100
@@ -18,9 +18,7 @@
* Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#ifdef __linux__
#include <fpu_control.h>
-#endif
/* Change the x87 FPU precision to double (64-bit) from the extended
(80-bit) Linux default. Note, unlike on i386, my testcases pass
@@ -29,14 +27,12 @@
*/
void setDoublePrecision() {
-#ifdef __linux__
fpu_control_t cw;
_FPU_GETCW(cw);
cw &= ~_FPU_EXTENDED;
cw |= _FPU_DOUBLE;
_FPU_SETCW(cw);
-#endif
}
void initialisePlatform() {
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]