diff options
| author | Mike Pall <mike> | 2025-10-16 13:17:45 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2025-10-16 13:17:45 +0200 |
| commit | a21ba1c9b5218ef83eb8bc6d374764da84f77ffd (patch) | |
| tree | 547c1730541f004444e0b697e5476d1cbaf67635 /src | |
| parent | a69aef43fe1838da26c193d188580229b2387583 (diff) | |
| download | luajit-a21ba1c9b5218ef83eb8bc6d374764da84f77ffd.tar.gz luajit-a21ba1c9b5218ef83eb8bc6d374764da84f77ffd.tar.bz2 luajit-a21ba1c9b5218ef83eb8bc6d374764da84f77ffd.zip | |
Add GNU/Hurd build support.
Note: this is not an officially supported target.
Contributed by Pino Toscano and Samuel Thibault. #1383 #1384
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 3 | ||||
| -rw-r--r-- | src/lj_arch.h | 3 | ||||
| -rw-r--r-- | src/lj_prng.c | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index c83abfa0..5dd98a31 100644 --- a/src/Makefile +++ b/src/Makefile | |||
| @@ -357,6 +357,9 @@ else | |||
| 357 | ifeq (GNU/kFreeBSD,$(TARGET_SYS)) | 357 | ifeq (GNU/kFreeBSD,$(TARGET_SYS)) |
| 358 | TARGET_XLIBS+= -ldl | 358 | TARGET_XLIBS+= -ldl |
| 359 | endif | 359 | endif |
| 360 | ifeq (GNU,$(TARGET_SYS)) | ||
| 361 | TARGET_XLIBS+= -ldl | ||
| 362 | endif | ||
| 360 | endif | 363 | endif |
| 361 | endif | 364 | endif |
| 362 | endif | 365 | endif |
diff --git a/src/lj_arch.h b/src/lj_arch.h index a4eecf27..865bfa23 100644 --- a/src/lj_arch.h +++ b/src/lj_arch.h | |||
| @@ -96,6 +96,9 @@ | |||
| 96 | #elif defined(__QNX__) | 96 | #elif defined(__QNX__) |
| 97 | #define LJ_TARGET_QNX 1 | 97 | #define LJ_TARGET_QNX 1 |
| 98 | #define LUAJIT_OS LUAJIT_OS_POSIX | 98 | #define LUAJIT_OS LUAJIT_OS_POSIX |
| 99 | #elif defined(__GNU__) | ||
| 100 | #define LJ_TARGET_HURD 1 | ||
| 101 | #define LUAJIT_OS LUAJIT_OS_POSIX | ||
| 99 | #else | 102 | #else |
| 100 | #define LUAJIT_OS LUAJIT_OS_OTHER | 103 | #define LUAJIT_OS LUAJIT_OS_OTHER |
| 101 | #endif | 104 | #endif |
diff --git a/src/lj_prng.c b/src/lj_prng.c index 02146b27..1bbb7eab 100644 --- a/src/lj_prng.c +++ b/src/lj_prng.c | |||
| @@ -125,7 +125,7 @@ static PRGR libfunc_rgr; | |||
| 125 | #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 | 125 | #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 |
| 126 | #define LJ_TARGET_HAS_GETENTROPY 1 | 126 | #define LJ_TARGET_HAS_GETENTROPY 1 |
| 127 | #endif | 127 | #endif |
| 128 | #elif (LJ_TARGET_BSD && !defined(__NetBSD__)) || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN || LJ_TARGET_QNX | 128 | #elif (LJ_TARGET_BSD && !defined(__NetBSD__)) || LJ_TARGET_SOLARIS || LJ_TARGET_CYGWIN || LJ_TARGET_QNX || LJ_TARGET_HURD |
| 129 | #define LJ_TARGET_HAS_GETENTROPY 1 | 129 | #define LJ_TARGET_HAS_GETENTROPY 1 |
| 130 | #endif | 130 | #endif |
| 131 | 131 | ||
