Skip to content

Conversation

@TSnake41
Copy link

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().

@WinterMute WinterMute requested review from fincs and mtheall July 11, 2019 18:42
Copy link
Member

@fincs fincs left a 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.

build() {
source /opt/devkitpro/3dsvars.sh

arm-none-eabi-gcc $CFLAGS -c -o dlfcn.o dlfcn.c
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use $(CC) here

Copy link
Author

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.

@fincs fincs requested a review from WinterMute July 11, 2019 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants