Skip to content
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

Consider making some libffi build options configurable #2

Open
alexrp opened this issue Jul 2, 2024 · 2 comments
Open

Consider making some libffi build options configurable #2

alexrp opened this issue Jul 2, 2024 · 2 comments
Labels
area: build Issues related to the build system. state: approved Enhancements and tasks that have been approved.

Comments

@alexrp
Copy link
Member

alexrp commented Jul 2, 2024

.FFI_DEBUG = null, // TODO: Perhaps make this configurable.

.FFI_MMAP_EXEC_EMUTRAMP_PAX = null, // TODO: Perhaps make this configurable.

.FFI_NO_RAW_API = null, // TODO: Perhaps make this configurable.

.FFI_NO_STRUCTS = null, // TODO: Perhaps make this configurable.

@alexrp alexrp added area: build Issues related to the build system. state: deliberation Issues that require design work and/or discussion. type: feature labels Jul 2, 2024
@alexrp
Copy link
Member Author

alexrp commented Jul 17, 2024

FFI_DEBUG

This seems to mostly be for internal libffi debugging purposes, so not that useful.

FFI_NO_RAW_API

I decided not to bind the raw API as it's undocumented and (AFAICT) never really used in the wild. So this option doesn't matter.

FFI_NO_STRUCTS

No idea why anyone would want this. It doesn't even significantly reduce code size.

@alexrp
Copy link
Member Author

alexrp commented Jul 17, 2024

FFI_MMAP_EXEC_EMUTRAMP_PAX

This seems useful for Gentoo/PaX. Should be added, but off by default.

@alexrp alexrp added state: approved Enhancements and tasks that have been approved. and removed state: deliberation Issues that require design work and/or discussion. labels Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build Issues related to the build system. state: approved Enhancements and tasks that have been approved.
Projects
None yet
Development

No branches or pull requests

1 participant