Skip to content

Solaris build fixes

Eric Berge requested to merge eberge/cmake:solaris-build-fixes into master

A couple of changes to fix Solaris build issues which occurred sometime after 3.5.2 (and which I first encounted in 3.7.1).

  1. The libuv build on Solaris 11 requires _XOPEN_SOURCE to be set to 600 to avoid a #error in a system header file which disallows an X/Open version less than 6 if compiling in C99 mode

  2. It appears that libuv was not ported for Solaris 10 x86 (but it does compile on Solaris 11 x86). In particular it uses an API (mkdtemp) which is not available on Solaris 10 (at least on x86, there is some indication from web discussions that it strangely is available on sparc but I found no evidence of it being available there either with my gcc/g++ versions (3.4.3)).

Merge request reports