Skip to content

Conversation

@obbardc
Copy link

@obbardc obbardc commented Nov 24, 2025

debugcc is currently linked statically using -static and -static-libgcc.
This is not required for normal use and causes issues for distributions
that prefer dynamically linked binaries, such as larger binaries and
duplicated runtime code that would otherwise be shared.

Drop the explicit static link flags and allow Meson to use the default
toolchain behaviour so that debugcc is built as a dynamically linked
binary instead.

@obbardc obbardc marked this pull request as ready for review November 24, 2025 22:34

executable('debugcc',
debugcc_srcs,
link_args: ['-static','-static-libgcc'],
Copy link
Author

@obbardc obbardc Nov 24, 2025

Choose a reason for hiding this comment

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

open to allowing this to be set at build-time with a variable.

debugcc is currently linked statically using -static and -static-libgcc.
This is not required for normal use and causes issues for distributions
that prefer dynamically linked binaries, such as larger binaries and
duplicated runtime code that would otherwise be shared.

Drop the explicit static link flags and allow Meson to use the default
toolchain behaviour so that debugcc is built as a dynamically linked
binary instead.

Signed-off-by: Christopher Obbard <[email protected]>
@obbardc obbardc force-pushed the wip/obbardc/build-dynamicallly-linked-bins branch from 5acc39d to 9b35001 Compare November 25, 2025 12:29
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.

1 participant