Skip to content

Conversation

@shelhamer
Copy link
Member

To build with the layer registry clang++ requires -force_load as
g++ requires --whole-archive.

This fixes the OS X build.

To build with the layer registry clang++ requires `-force_load` as
g++ requires `--whole-archive`.
@shelhamer shelhamer mentioned this pull request Oct 3, 2014
@shelhamer
Copy link
Member Author

@akosiorek @bhack or other CMake devs it might be worth checking the CMake build, pycaffe, and matcaffe with this change and the new layer factory from #1167.

@vimalthilak
Copy link

Works for me. Your patch makes more sense than what I was using on my side: putting -force_load under OSX.

shelhamer added a commit that referenced this pull request Oct 3, 2014
[fix] translate g++ whole archive to force load for clang++ compilation
@shelhamer shelhamer merged commit d1b339e into BVLC:dev Oct 3, 2014
@shelhamer shelhamer deleted the clang-whole-archive branch October 3, 2014 20:42
mitmul pushed a commit to mitmul/caffe that referenced this pull request Oct 11, 2014
[fix] translate g++ whole archive to force load for clang++ compilation
RazvanRanca pushed a commit to RazvanRanca/caffe that referenced this pull request Nov 4, 2014
[fix] translate g++ whole archive to force load for clang++ compilation
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

Successfully merging this pull request may close these issues.

2 participants