-
Notifications
You must be signed in to change notification settings - Fork 15.6k
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
Mac OS: unable to build libprotobuf with libc++ and deployment target 10.7 #3156
Comments
When setting flags, are you doing it on the For ObjC, we've got a wrapper script we use to build the protoc to use, so you might be able to steal some ideas from there. |
I was passing the options to I was trying to find a way how to tweak the linking during make, but was not able to. I think the problem is somewhere around the |
@TeBoring sorry, I can't say I have any real experience sorting though the libtool/configure/automake side of things, I've done just the minimal work to get the conformance test building for ObjC. I can help explain some of the macOS specific options the compiler can use, but getting them into the protobuf build is likely better handled by someone that knows that process. |
@JakubBednar Do you still have problem? |
Feel free to reopen if there is still problem. |
Hello,
I am trying to build libprotobuf for mac os x 10.7 using SDK for 10.9 with libc++. Here are my results so far:
Specifying CXXFLAGS="-mmacosx-version-min=10.9 -isysroot <path to 10.9 sdk>" ends with correct protobuf libraries linking only libc++
Specifying CXXFLAGS="-mmacosx-version-min=10.7 -isysroot <path to 10.9 sdk>" ends with incorrect protobuf libraries linking only libstdc++
Specifying CXXFLAGS="-mmacosx-version-min=10.7 -isysroot <path to 10.9 sdk> -stdlib=libc++" ends with compiler error when linking the libraries
Specifying CXXFLAGS="-mmacosx-version-min=10.7 -isysroot <path to 10.9 sdk> -stdlib=libc++" and LIBS=-lc++ ends with incorrect protobuf libraries linking both libc++ and libstdc++
I have tried with old protobuf 2.5.0 as well as new 3.3.0. Is there a way how to force the buildsystem to link only with libc++ with macosx-version-min set to 10.7?
Thanks a lot,
Jakub
The text was updated successfully, but these errors were encountered: