Skip to content

Conversation

@alvinometric
Copy link
Contributor

No description provided.

@hzeller
Copy link
Owner

hzeller commented Aug 7, 2025

I wonder if we should have some flags to statically link the resulting binaries (at least on Linux) to make them working on a wider range of linux distributions.

@alvinometric
Copy link
Contributor Author

I'm not on Linux but this sounds like a good idea 😄

@alvinometric alvinometric marked this pull request as ready for review August 7, 2025 14:32
jobs:
BuildLinux:
runs-on: ubuntu-20.04 # test slightly older ubuntu.
runs-on: ubuntu-24.04
Copy link
Owner

Choose a reason for hiding this comment

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

instead of 24, i'd still use 22, because I would like to make sure that things still compile on older systems.

Can you figure out the necessary flags we can give to the makefile in linking so that we can have a fully statically linked binary ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Up to you but we're 6 months away from 24.04 becoming the older system ?

Copy link
Owner

Choose a reason for hiding this comment

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

fair enough.

@alvinometric
Copy link
Contributor Author

I wonder if we should have some flags to statically link the resulting binaries (at least on Linux) to make them working on a wider range of linux distributions.

From a quick search it looks like it's LDFLAGS="-static" but I have no way to test it

@hzeller
Copy link
Owner

hzeller commented Aug 7, 2025

Let me play with static separately.

@hzeller hzeller merged commit 486d5c8 into hzeller:master Aug 7, 2025
3 checks passed
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