-
-
Notifications
You must be signed in to change notification settings - Fork 107
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-libdl. #101
base: master
Are you sure you want to change the base?
Add 3ds-libdl. #101
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After this is merged, it might be worth doing a switch-libdl
too.
3ds/libdl/PKGBUILD
Outdated
build() { | ||
source /opt/devkitpro/3dsvars.sh | ||
|
||
arm-none-eabi-gcc $CFLAGS -c -o dlfcn.o dlfcn.c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should use $(CC)
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
${CC} is currently not defined in 3dsvars.sh, however, ${TOOL_PREFIX} is defined to arm-none-eabi-
and is actually used to define ${AR}, so to get ${CC}, and can use ${TOOL_PREFIX}gcc.
As possibly needed with #85. This is a extendable stub implementation of libdl.
It implements a "fake" libdl that can be needed for some libraries (like LuaJIT FFI).
You can (if needed) change the functions bound to the stub library using dl_setfn().