Closed cball01 closed 1 year ago
This looks as if you're seeing this is because we're finding libsupc++.a when we should be looking for only a shared library. Normally on libstdc++ platforms, we use libstdc++.so as the C++ runtime library, which gives us this symbol.
Thank you, disabling the libsupc++ test did the trick for me.
If the static version of the library is never what people want, the magic is that on CMakeLists.txt line 228: find_library(CXX_RUNTIME_LIB NAMES ${CXX_RUNTIME_NAME_FULL} ${CXX_RUNTIME_NAME})
Should probably be more like: find_library(CXX_RUNTIME_LIB NAMES ${CXX_RUNTIME_NAME_FULL} )
The CMake has now been reworked and doesn't try to link directly against a C++ runtime. Can you try again?
Looks good, builds clean now give or take some slight whinging from clang:
In file included from /home/cball/local/src/libobjc2-test/libobjc2/dtable.h:3:
/home/cball/local/src/libobjc2-test/libobjc2/sarray2.h:55:8: warning: variable length array folded to constant array as an extension [-Wgnu-folding-constant]
void *data[data_size];
^
1 warning generated.
This is with source pulled from git, version 2.1 doesn't build with a different set of undefined references to std:: things. 1.8.1 doesn't build because of an issue that has since been addressed.
Thoughts, mockery?