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

support "fully static" linkage #810

Merged
merged 9 commits into from
Sep 8, 2023
Merged

support "fully static" linkage #810

merged 9 commits into from
Sep 8, 2023

Conversation

vyzo
Copy link
Collaborator

@vyzo vyzo commented Sep 7, 2023

So, gxc -static -exe and build static-exe: come back and they have the right meaning this time: -static means do static linkage for the executable with gcc -Bstatic -Wl,-static ....

Also adds optimized-static-exe:, equivalent to gxc -O -full-program-optimized -static -exe ...

TBD:

  • tests
  • document gxc -static -exe [-full-program-optimization] and make static-exe:/optimized-static-exe:.

@vyzo vyzo requested a review from ober September 7, 2023 21:08
@vyzo vyzo marked this pull request as draft September 7, 2023 21:09
Copy link
Collaborator

@ober ober left a comment

Choose a reason for hiding this comment

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

+1

@vyzo vyzo force-pushed the exe-static-linkage branch 2 times, most recently from 374f149 to 7d47e88 Compare September 7, 2023 21:31
So, gxc -static -exe and build static-exe: come back and they have the
right meaning this time: `-static` means do static linkage for the
executable with `gcc -Bstatic -Wl,-static ...`.

Also adds `optimized-static-exe:`, equivalent to
`gxc -O -full-program-optimized -static  -exe ...`
@vyzo vyzo force-pushed the exe-static-linkage branch from 7d47e88 to d47c675 Compare September 7, 2023 21:44
@vyzo vyzo marked this pull request as ready for review September 8, 2023 07:45
@vyzo vyzo merged commit 97f76ab into master Sep 8, 2023
@vyzo vyzo deleted the exe-static-linkage branch September 8, 2023 09:01
@vyzo vyzo added this to the Gerbil v0.18: Nimzowitsch milestone Sep 18, 2023
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