Skip to content

Pass libstdc++.so path to linker under OpenBSD #28501

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
Sep 20, 2015

Conversation

semarie
Copy link
Contributor

@semarie semarie commented Sep 18, 2015

By default, the linker in use under OpenBSD is the linker of base, which
don't include /usr/local/lib where libstdc++ of gcc-4.9 lives. We need
to add this directory to linker-path-search (using -L).

Search the path of libstdc++.a, which is a known name (libstdc++.so has
SO_VERSION) in the same directory.

r? @alexcrichton

this commit needs #28495 to be commited first. It should be the last piece for building rustc under OpenBSD from scratch.

@alexcrichton
Copy link
Member

@bors: r+ 4a3faf54ab5be4ed5c5172cd36f608769b8cd251

@bors
Copy link
Collaborator

bors commented Sep 19, 2015

⌛ Testing commit 4a3faf5 with merge bc67c45...

@bors
Copy link
Collaborator

bors commented Sep 19, 2015

💔 Test failed - auto-win-msvc-64-opt

@semarie
Copy link
Contributor Author

semarie commented Sep 20, 2015

@alexcrichton I change the ifeq in order to match openbsd only. Sorry for missed it previously.

@alexcrichton
Copy link
Member

Could you also squash the commits together?

By default, the linker in use under OpenBSD is the linker of base, which
don't include /usr/local/lib where libstdc++ of gcc-4.9 lives. We need
to add this directory to linker-path-search (using -L).

Search the path of libstdc++.a, which is a known name (libstdc++.so has
SO_VERSION) in the same directory.
@alexcrichton
Copy link
Member

@bors: r+ 049d76b

bors added a commit that referenced this pull request Sep 20, 2015
By default, the linker in use under OpenBSD is the linker of base, which
don't include /usr/local/lib where libstdc++ of gcc-4.9 lives. We need
to add this directory to linker-path-search (using -L).

Search the path of libstdc++.a, which is a known name (libstdc++.so has
SO_VERSION) in the same directory.

r? @alexcrichton 

this commit needs #28495 to be commited first. It should be the last piece for building rustc under OpenBSD from scratch.
@bors
Copy link
Collaborator

bors commented Sep 20, 2015

⌛ Testing commit 049d76b with merge 6602b2f...

@bors bors merged commit 049d76b into rust-lang:master Sep 20, 2015
@semarie semarie deleted the stdcpp-path branch September 21, 2015 17:28
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.

3 participants