jamvm: Add host build

Needed for classpath. GCJ is also needed but that can be dealt with
separately.

Fix compilation with musl by defining _GNU_SOURCE. What's funny here is
that if __USE_GNU gets replaced, the host build fails. The man page says
_GNU_SOURCE for pthread_getattr_np but glibc violates that statement.

Removed classpath dependency. classpaths must select jamvm, not the other
way around.

Removed target whitelist. Switched to blacklist.

Fixed License information.

Various other cleanups.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry-picked from 2972cc98eb and synced
from master)
This commit is contained in:
Rosen Penev
2019-08-11 13:58:21 -07:00
parent 539c26b2ea
commit cbfd07701b
2 changed files with 22 additions and 7 deletions
+12
View File
@@ -0,0 +1,12 @@
--- a/src/os/linux/os.c
+++ b/src/os/linux/os.c
@@ -26,6 +26,9 @@
#include <sys/sysinfo.h>
#define __USE_GNU
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
#include <dlfcn.h>
#include <pthread.h>