We essentially hammered at it until it compiled (cryptopp and a dozen of other libs, not counting our own code). The idea was to match all compiler flags across everything just to be sure (switching from "LLVM GCC 4.2" to "Apple LLVM Compiler 4.2" and enabling C++11 support). -stdlib=libc++ was definitely needed for full(-er) support of C++11 features elsewhere. Mixing -stdlib settings would kill you for sure, and we didn't want to run excessive tests to see if -std=c++11 would have the same effect.
SDK version and other stuff was done because we build on potentially newer systems, but our binaries must still support OSX 10.7 (but we don't care about anything older). That one is definitely not for everyone. Visibility settings are again to match the rest of our code. (yay for thousands of "different visibility" warnings otherwise) AR = libtool was always there for Darwin as far as I know. BTW, I'm didn't send that patch to be applied to cryptopp, just to show what customizations we did. :) On Thu, Jan 23, 2014 at 4:08 PM, Mouse <[email protected]> wrote: > I find the excessive customization that Eugene did quite unnecessary, and > probably harmful: there is no reason to enforce the minimal version of Mac > OS X, there is no need to enforce c++11 standard, there is no need to > explicitly point at MacOSX10.7.sdk, etc. > > Simplicity is our friend. :-) > > And again, compiling Crypto++ has been working OK for me since Leopard, > with different compilers including native. The GNUmakefile that I attached > previously, works fine with gcc48, clang-3.3, and clang-3.4. I used it with > the native clang (from Xcode package), but don't remember whether I did > anything to it (and if I did - it was *surely* less drastic than the > patch you posted). > > TNX! > > P.S. Eugene, I wonder what's the reason for switching from AR to > LIBTOOL...? > -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
