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

Feature Request: Use environment flags for mold-specific switches #1369

Open
EndlessEden opened this issue Nov 11, 2024 · 1 comment
Open

Comments

@EndlessEden
Copy link

What: Add a check for env flags on launch that executes mold with mold specific switches

Why: When trying to use mold with GCC/Clang using the LDFLAGS variable, gcc/clang produces a error when supplied with mold-specific flags during startup. preventing building prior to reaching the linker stage.

@Alcaro
Copy link

Alcaro commented Nov 11, 2024

gcc does, as far as I can determine, not use the LDFLAGS variable. Do ld.bfd flags, like --gc-sections, work? Are you prefixing your linker flags with -Wl,?

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

No branches or pull requests

2 participants