Closed vitcpp closed 1 year ago
It seems there are build problems on 11+ versions. The error is occured when compiling with clang. It seems PG_CFLAGS is not used with clang. Not sure, how clang compilation is performed. I see no clang rules. It is interesting that there is no clang compilation with 10 version. Investigating it.
The problem with clang was because of JIT compilation (--with-llwm option). Variables PG_CXXFLAGS, PG_CFLAGS are not propagated into clang compilation. Using PG_CPPFLAGS fixes the problem.
@esabol thank you for the review. I'm going to merge this PR because there are no objections.
Implemented propagation of pg sphere version from Makefile into the code. Fixed pg_sphere_version function.