Source: luajit
Version: 2.0.2+dfsg-1
Severity: wishlist
Tags: patch
User: debian-h...@lists.debian.org
Usertags: hurd
Hi,
the attached patches provide support for GNU/Hurd in luajit:
* hurd.diff:
- recognizes Hurd as POSIX OS (I guess it is okay, otherwise a new
LUAJIT_OS_HURD could be defined and used if needed)
- links to libdl on Hurd (needed for dlopen friends)
* debian.diff:
adds hurd-i386 to the supported architectures in arch:any binaries
(PS: libluajit-5.1-dev lacks powerpcspe)
Thanks,
--
Pino
--- a/src/lj_arch.h
+++ b/src/lj_arch.h
@@ -71,6 +71,8 @@
#define LUAJIT_OS LUAJIT_OS_BSD
#elif (defined(__sun__) defined(__svr4__)) || defined(__CYGWIN__)
#define LUAJIT_OS LUAJIT_OS_POSIX
+#elif defined(__GNU__)
+#define LUAJIT_OS LUAJIT_OS_POSIX
#else
#define LUAJIT_OS LUAJIT_OS_OTHER
#endif
--- a/src/Makefile
+++ b/src/Makefile
@@ -318,6 +318,9 @@ else
ifeq (GNU/kFreeBSD,$(TARGET_SYS))
TARGET_XLIBS+= -ldl
endif
+ ifeq (GNU,$(TARGET_SYS))
+TARGET_XLIBS+= -ldl
+ endif
endif
endif
endif
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,7 @@ Vcs-Browser: http://git.debian.org/?p=pk
Homepage: http://luajit.org
Package: luajit
-Architecture: i386 amd64 kfreebsd-i386 armel armhf powerpc powerpcspe mips mipsel
+Architecture: i386 amd64 kfreebsd-i386 armel armhf powerpc powerpcspe mips mipsel hurd-i386
Multi-Arch: foreign
Pre-Depends: multiarch-support
Depends: ${shlibs:Depends}, ${misc:Depends}, libluajit-5.1-common (= ${source:Version})
@@ -30,7 +30,7 @@ Description: Just in time compiler for L
by its embeddable (i.e. library) version.
Package: libluajit-5.1-2
-Architecture: i386 amd64 kfreebsd-i386 armel armhf powerpc powerpcspe mips mipsel
+Architecture: i386 amd64 kfreebsd-i386 armel armhf powerpc powerpcspe mips mipsel hurd-i386
Multi-Arch: same
Pre-Depends: multiarch-support
Depends: ${shlibs:Depends}, ${misc:Depends}, libluajit-5.1-common (= ${source:Version})
@@ -46,7 +46,7 @@ Package: libluajit-5.1-dev
Section: libdevel
Multi-Arch: same
Pre-Depends: multiarch-support
-Architecture: i386 amd64 kfreebsd-i386 armel armhf powerpc mips mipsel
+Architecture: i386 amd64 kfreebsd-i386 armel armhf powerpc mips mipsel hurd-i386
Depends: ${shlibs:Depends}, ${misc:Depends}, libluajit-5.1-2 (= ${binary:Version})
Description: Just in time compiler for Lua - development files
This package contains header files and a statically linkable library for