报的错:
error: 'PTHREAD_MUTEX_RECURSIVE' was not declared in this scope
加上-D_LIBCPP_HAS_THREAD_LIBRARY_EXTERNAL即可
如下:
./configure --prefix=/mnt/d/fdbus/protobuf/build/install --host=aarch64-unknown-nto-qnx7.1.0 CC=aarch64-unknown-nto-qnx7.1.0-gcc CXX=aarch64-unknown-nto-qnx7.1.0-g++ CPPFLAGS='-D_GNU_SOURCE -D_XOPEN_SOURCE=500 -D_LIBCPP_HAS_THREAD_LIBRARY_EXTERNAL'