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

Linux: ensure GLib's g_print*() functions wrap the system ones #264

Merged
merged 1 commit into from
Feb 19, 2025

Conversation

kleisauke
Copy link
Collaborator

C99 printf() semantics are well-supported by these Linux cross-targets, avoids the need for gnulib compat functions.

An alternative is setting up QEMU when cross-compiling, as this functionality is gated by meson.can_run_host_binaries(), but this is a bit simpler.

Note: this is not needed for macOS due to:
https://github.com/GNOME/glib/blob/2.83.3/meson.build#L1204-L1212
(you can verify this by checking for the GLIB_USING_SYSTEM_PRINTF definition in lib/glib-2.0/include/glibconfig.h)

Windows binaries, where this was originally found, will be fixed via PR libvips/build-win64-mxe#72 or work-in-progress commit libvips/build-win64-mxe@ea91b64.

C99 `printf()` semantics are well-supported by these Linux
cross-targets, avoids the need for gnulib compat functions.

An alternative is setting up QEMU when cross-compiling, as this
functionality is gated by `meson.can_run_host_binaries()`, but
this is a bit simpler.
@lovell lovell merged commit 0fa07ac into lovell:main Feb 19, 2025
14 checks passed
@lovell
Copy link
Owner

lovell commented Feb 19, 2025

👍

@kleisauke kleisauke deleted the linux-cross-C99-printf branch February 19, 2025 13:22
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