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

Fix linking with '--as-needed' (sensitive to linking order) #1654

Merged
merged 1 commit into from
Mar 11, 2017
Merged

Fix linking with '--as-needed' (sensitive to linking order) #1654

merged 1 commit into from
Mar 11, 2017

Conversation

stefantalpalaru
Copy link
Contributor

While working on a Gentoo ebuild, where I make sure that the environment CFLAGS and LDFLAGS are used - as is policy - I encountered a linking failure when having "--as-needed" in LDFLAGS. Turns out it was due to the linking order ("-ldl" appearing before "-lponyrt").

This patch changes the order of the "whole archive" and the regular libraries, thus fixing the problem.

@SeanTAllen SeanTAllen added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Mar 11, 2017
@SeanTAllen SeanTAllen changed the title fix linking with '--as-needed' (sensitive to linking order) Fix linking with '--as-needed' (sensitive to linking order) Mar 11, 2017
@SeanTAllen SeanTAllen merged commit 1921f22 into ponylang:master Mar 11, 2017
ponylang-main added a commit that referenced this pull request Mar 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants