Skip to content

Check if -static-{libgcc,libstdc++} flags are supported before passing them#44

Open
arrowd wants to merge 1 commit into
linuxdeploy:masterfrom
arrowd:freebsd
Open

Check if -static-{libgcc,libstdc++} flags are supported before passing them#44
arrowd wants to merge 1 commit into
linuxdeploy:masterfrom
arrowd:freebsd

Conversation

@arrowd
Copy link
Copy Markdown

@arrowd arrowd commented May 3, 2026

This fixes build on FreeBSD (with Clang).

…g them

This fixes build on FreeBSD (with Clang).
Copy link
Copy Markdown
Member

@TheAssassin TheAssassin left a comment

Choose a reason for hiding this comment

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

I'd rather have a non-static mode which you can opt into. This might lead to situations where static linking is needed but implicitly disabled. The default use case is always static linking with this tool.

@arrowd
Copy link
Copy Markdown
Author

arrowd commented May 15, 2026

This might lead to situations where static linking is needed but implicitly disabled.

My understanding is that clang simply does not support -static-{libgcc,libstdc++} flags, but only -static, which is enough to build a statically-linked executable. I just verified that the executable I built is statically linked indeed.

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