cJSON
cJSON copied to clipboard
Wrong gcc version check while cross compiling
Makefile use const string "gcc -dumpversion" to check gcc version. It should be like "$(CC) -dumpversion"
This is now fixed on the master branch.
Although I would recommend using CMake instead of the makefile. (I haven't tried cross compiling with CMake either though).
FYI, cJSON is continuously cross-compiled (using CMake) for various architectures as part of Buildroot's testing infrastructure. You can view failures at http://autobuild.buildroot.net/?reason=cjson-v% - empty because there have been no failures in the last 8 months.
Thats good to hear 🙂