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 building with libc++. #123

Merged
merged 1 commit into from
Nov 19, 2019
Merged

Fix building with libc++. #123

merged 1 commit into from
Nov 19, 2019

Conversation

m-gupta
Copy link
Contributor

@m-gupta m-gupta commented Nov 19, 2019

Do not hardcode stdc++ when linking. Rather, use C++
compiler as the linker driver which will choose correct
C++ library for linking.

Chrome OS bug:
https://bugs.chromium.org/p/chromium/issues/detail?id=1026266

src/Makefile.am Outdated Show resolved Hide resolved
@hasse69
Copy link
Owner

hasse69 commented Nov 19, 2019

It is an interesting observation that this is not working on some platforms, in fact this is how it looked a long time ago. For some reason, that I cannot recall right now, it was changed. Agree it is not something to recommend. Now it seems to work fine so please address my comment and we can merge this.

Do not hardcode stdc++ when linking. Rather, use C++
compiler as the linker driver which will choose correct
C++ library for linking.

Chrome OS bug:
https://bugs.chromium.org/p/chromium/issues/detail?id=1026266
@m-gupta
Copy link
Contributor Author

m-gupta commented Nov 19, 2019

Updated, ptal.

Copy link
Owner

@hasse69 hasse69 left a comment

Choose a reason for hiding this comment

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

Looks good.

@hasse69 hasse69 merged commit 750d7e3 into hasse69:master Nov 19, 2019
@hasse69
Copy link
Owner

hasse69 commented Nov 19, 2019

Thanks for the contribution. Merged.

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