Ok, it's bad form to reply to oneself, but I've got it working with libc++ instead of libstdc++ and this might be useful for others...
docs/osx/install.txt says to do:
Code: Select all
mkdir build-cocoa-debug
cd build-cocoa-debug
../configure --enable-debug
make
# Build the samples and demos
cd samples; make;cd ..
cd demos; make;cd ..
I replaced the above 'configure' line with:
Code: Select all
../configure --enable-monolithic --prefix=/opt/wx --enable-debug --enable-cxx11 --disable-shared --enable-unicode --with-cocoa --with-macosx-version-min=10.9 CXXFLAGS="-std=c++0x -stdlib=libc++" CPPFLAGS="-stdlib=libc++" LIBS=-lc++
based on
this post from back in 2013. I made the deployment target 10.9 not 10.7 because that's what the clang warning suggests, which means you have to set the 'macOS Deployment Target' variable to 10.9 in your Xcode project as well, but then everything compiles and links without warnings.
I prefer a static library (static apps are easier to give to others) and --enable-monolithic makes it easier to see which libraries to add to the Xcode build-phases->link libraries settings. In this case libwx_osx_cocoau-3.1a, libwxpng-3.1a and libiconv.tbd
Anyway, enjoy.