Skip to content

Document static lib dependencies #213

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

Merged
merged 1 commit into from
Nov 15, 2021
Merged

Document static lib dependencies #213

merged 1 commit into from
Nov 15, 2021

Conversation

jsha
Copy link
Collaborator

@jsha jsha commented Nov 11, 2021

Fixes #133

@kevinburke
Copy link
Contributor

See #237, which will protect against regressions

@kevinburke
Copy link
Contributor

FYI, on Mac, I get a different list now:

-framework Security -liconv -lSystem -lresolv -lc -lm -liconv

I have no idea why -liconv is presented twice.

@jsha
Copy link
Collaborator Author

jsha commented Nov 15, 2021

FYI, on Mac, I get a different list now:

That's the same as what's in this PR, I just added -lrustls at the front.

I have no idea why -liconv is presented twice.

Same! Maybe file an issue on Rust? Seems likely to be a bug.

@kevinburke
Copy link
Contributor

Ah, I should have read the note above the list. "The order and any duplication can be significant."

note: Link against the following native artifacts when linking against this static library. The order and any duplication can be significant on some platforms.

note: native-static-libs: -framework Security -liconv -lSystem -lresolv -lc -lm -liconv

    Finished dev [unoptimized + debuginfo] target(s) in 11.51s

@jsha jsha merged commit bdfa4b4 into main Nov 15, 2021
@jsha jsha deleted the list-staticlib-deps branch November 15, 2021 23:02
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.

undefined reference to 'fmaf' on Ubuntu 18.04
2 participants