Skip to content
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

Universal Boost dynamic libraries (Intel arch and Apple Silicon arch) #60

Open
Anil8753 opened this issue Oct 27, 2020 · 2 comments
Open

Comments

@Anil8753
Copy link

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

@Anil8753
Copy link
Author

Anil8753 commented Oct 30, 2020

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 

@mackworth
Copy link

This is now addressed; see issue #57.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants