Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upadd support for non-standard name of stdc++ library #28495
Conversation
rust-highfive
assigned
alexcrichton
Sep 18, 2015
semarie
force-pushed the
semarie:stdcpp-name
branch
2 times, most recently
from
fbaacfd
to
2fb999c
Sep 18, 2015
semarie
reviewed
Sep 18, 2015
configure
Outdated
| @@ -1095,6 +1095,11 @@ envopt CPP | |||
| envopt CFLAGS | |||
| envopt CXXFLAGS | |||
|
|
|||
| # stdc++ name in use | |||
| # used to manage non-standard name (on OpenBSD for example) | |||
| CFG_STDCPP_NAME=$(echo "stdc++" | sed "$($CFG_CC -v 2>&1 | sed -n "s/.*--program-transform-name='\([^']*\)'.*/\1/p")") | |||
This comment has been minimized.
This comment has been minimized.
semarie
Sep 18, 2015
Author
Contributor
program-transform-name is a sed regex (under OpenBSD for gcc-4.9 it is s,^,e,).
basically, it search for the configure flag program-transform-name in gcc -v, and use that with sed on the "stdc++" name. If the flag isn't found, the transformation applied is sed "" which means "no transformation".
semarie
force-pushed the
semarie:stdcpp-name
branch
from
2fb999c
to
913fe6d
Sep 18, 2015
This comment has been minimized.
This comment has been minimized.
semarie
referenced this pull request
Sep 18, 2015
Merged
Pass libstdc++.so path to linker under OpenBSD #28501
bors
added a commit
that referenced
this pull request
Sep 19, 2015
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
merged commit 913fe6d
into
rust-lang:master
Sep 19, 2015
semarie
deleted the
semarie:stdcpp-name
branch
Sep 19, 2015
bors
added a commit
that referenced
this pull request
Sep 19, 2015
bors
added a commit
that referenced
this pull request
Sep 20, 2015
nhowell
referenced this pull request
Sep 24, 2015
Closed
Not able to compile on Windows in MinGW anymore #28639
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
semarie commentedSep 18, 2015
it makes rustc compatible with gcc installation that are using
`--program-transform-name' configure flag (on OpenBSD for example).
and pass it to mklldeps.py
note that CFG_STDCPP_NAME is about stdc++ name, not about libc++. If
using libc++, the default name will be `stdc++', but it won't be used
when linking.
r? @alexcrichton
I added this support globally instead of just for OpenBSD as it isn't specially related to OpenBSD (except OpenBSD use it for gcc-4.9). And as I would had to change
llvm.mk', having just a default value inconfigure' for others platforms won't be very useful.