minix/lib/nbsd_libm/minix-port.patch

29 lines
703 B
Diff
Raw Normal View History

2011-07-08 16:51:20 +02:00
diff -ru nbsdsrc/src/lib/libm/Makefile lib/nbsd_libm/Makefile
--- nbsdsrc/src/lib/libm/Makefile
+++ lib/nbsd_libm/Makefile
2011-07-12 18:44:29 +02:00
@@ -13,6 +13,10 @@
2011-07-08 16:51:20 +02:00
#
#
+.if ${MACHINE_ARCH} == "unknown"
+MACHINE_ARCH:= ${MACHINE}
+.endif
+
#
# There are two options in making libm at fdlibm compile time:
# _IEEE_LIBM --- IEEE libm; smaller, and somewhat faster
diff -ru nbsdsrc/src/lib/libm/arch/i387/fenv.c lib/nbsd_libm/arch/i387/fenv.c
--- nbsdsrc/src/lib/libm/arch/i387/fenv.c
+++ lib/nbsd_libm/arch/i387/fenv.c
@@ -122,8 +122,10 @@
size_t oldlen = sizeof(__HAS_SSE);
int rv;
+#ifndef __minix
rv = sysctlbyname("machdep.sse", &__HAS_SSE, &oldlen, NULL, 0);
if (rv == -1)
+#endif
__HAS_SSE = 0;
}