-
Notifications
You must be signed in to change notification settings - Fork 178
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
Add -stdlib=libc++ flag when building snappy on develop-3.0 #262
base: develop-3.0
Are you sure you want to change the base?
Conversation
Shout out to @jvf for the original PR |
Does this address an issue building on a particular OS? I know we set to use libc++ on OSX specifically - https://github.com/basho/eleveldb/blob/develop-3.0/c_src/build_deps.sh#L71-L75. I think we only changed it on OSX as it was understood it wasn't a problem on another OS, but we haven't exhaustively tested. |
I tried develop-3.0 on MacOS Big Sur and it failed and after adding this flag the build successfully happened. Hence thought I should open a PR |
What do you get when you run |
Darwin |
So that leaves me confused why the current OSX fix doesn't work, given that will add libc++ to the $CFLAGS $CXXFLAGS (when uname returns "Darwin") |
Yeah, I was also confused but I can confirm it is working after the fix and before it wasn’t |
The issue potentially is that your fix will change it for every OS, which we avoided previously; only setting this for OSX which is the only OS where we had the problem. |
Ok let me see if There is a better way |
It would be helpful if you can echo out in the script and confirm if these flags are being set as expected on Big Sur |
@ThomasArts - did you say you had a problem with OSX builds? Was it this? |
Compiling eleveldb on MacOS X 10.15.7 without problem, but indeed, somehow the compiler is already instructed to use libc++ as stdlib: |
In other words, we should not need this PR to fix it. |
used the changes from #258 and opened a PR again to develop-3.0