Open Anil8753 opened 4 years ago
If I try to build dylib (changing 'static' to 'shared') It fails with error:
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of iOS 7 [-Wdeprecated]
ld: warning: ignoring file /usr/lib/libstdc++.dylib, building for iOS-arm64 but attempting to link with file built for macOS-x86_64
ld: building for iOS, but linking in object file built for macOS, file 'macos-silicon-build/boost/bin.v2/libs/atomic/build/darwin-~macossilicon/release/threading-multi/visibility-hidden/lock_pool.o' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
"/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" -dynamiclib -Wl,-single_module -install_name "libboost_atomic.dylib" -o "macos-silicon-build/boost/bin.v2/libs/atomic/build/darwin-~macossilicon/release/threading-multi/visibility-hidden/libboost_atomic.dylib" "macos-silicon-build/boost/bin.v2/libs/atomic/build/darwin-~macossilicon/release/threading-multi/visibility-hidden/lock_pool.o" -headerpad_max_install_names -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wl,-dead_strip -no_dead_strip_inits_and_terms -arch arm64
This is now addressed; see issue #57.
Does this script supports building Universal Boost dynamic libraries (Intel arch and Apple Silicon archs = amd64 x86_64) The question is asked here... https://stackoverflow.com/questions/64553398/compile-boost-as-universal-library-intel-and-apple-silicon-architectures