-
-
Notifications
You must be signed in to change notification settings - Fork 114
Add 3ds-luajit #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 3ds-luajit #85
Conversation
|
Installed files shouldn't be renamed or moved around, nor should the pkgconfig directory be deleted. The proper way to obtain cflags and libs for libraries like this is to use pkg-config rather than specifying them manually. We can either supply a dummy libdl.a in a separate package or patch ./etc/luajit.pc temporarily to avoid linker errors. -Wl,-E should be patched out anyway, we're not supplying dynamic libs. I also had some success building from top level dir rather than descending into src. Is there a good way to test the result? |
|
(I fixed a issue, I noticed that luajit was built without platform flags, so soft-abi and some other stuff, so can't link against 3ds homebrews)
A libdl library could be interesting if it dlfcn stuff works, e.g involves "modules" as structures, with minimal patching, we could build FFI with "libdl support".
Yes, I made a LuaJIT shell for 3DS : https://gist.github.com/TSnake41/cc723ffcfc386bbc9bf91cd1475e0836 I made another shell (in Lua with FFI) that currently can't work because it needs the "libdl support" feature (that adds support to ffi.cdef stuff very useful to interact with C functions by prototypes) of FFI which is currently not supported. |
|
I did it without moving files around: |
|
@uyjulian This PR has already been updated to not move files around. I just haven't had time to test the library. Your changes are intrusive and inappropriate, sorry. |
|
May I ask how this manages to get JIT working without mmap/etc implementation? |
|
It doesn't. However, hacking in a questionable implementation of mmap and pthread isn't a desirable solution either. |
|
One package and only one package per PR please. Separate out the stub libdl |
|
Making a cleanup, will reopen it later. |
|
protip: use |
No description provided.