diff options
author | Brad King <brad.king@kitware.com> | 2019-09-23 14:32:30 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-09-23 14:32:42 (GMT) |
commit | 3d1fb997e5322d6b6e7c4b0b467792995428ebb7 (patch) | |
tree | cd250360ea0613163da73e908a6bec115206fedb /bootstrap | |
parent | aebb1af7a2ca9c20b6ed5bbb4dc1fed233223481 (diff) | |
parent | ba315f2035bc048068b36ae22cc3e2c4bbc19d21 (diff) | |
download | CMake-3d1fb997e5322d6b6e7c4b0b467792995428ebb7.zip CMake-3d1fb997e5322d6b6e7c4b0b467792995428ebb7.tar.gz CMake-3d1fb997e5322d6b6e7c4b0b467792995428ebb7.tar.bz2 |
Merge topic 'HP-UX_Port_GCC'
ba315f2035 bootstrap: Require GCC 4.9 or higher on HP-UX
5ffb2dbff6 libuv: Add partial port to HP-UX
1059f9a96d jsoncpp: Fix compilation on HP-UX 11.31 ia64 with GCC 4.9.3
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3508
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1069,6 +1069,10 @@ echo ' #error "On Solaris we need C99." #endif +#if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) + __GNUC_MINOR__) >= 409) +#error "On HP-UX we need GCC 4.9 or higher." +#endif + #include <stdio.h> int main(int argc, char* argv[]) @@ -1137,6 +1141,10 @@ echo ' #error "SunPro <= 5.13 mode not supported due to bug in move semantics." #endif +#if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) + __GNUC_MINOR__) >= 409) +#error "On HP-UX we need GCC 4.9 or higher." +#endif + #if __cplusplus > 201103L #include <iterator> int check_cxx14() @@ -1450,6 +1458,9 @@ else *Darwin*) uv_c_flags="${uv_c_flags} -D_DARWIN_USE_64_BIT_INODE=1 -D_DARWIN_UNLIMITED_SELECT=1" ;; + *HP-UX*) + uv_c_flags="${uv_c_flags} -D_XOPEN_SOURCE_EXTENDED" + ;; *Linux*) uv_c_flags="${uv_c_flags} -D_GNU_SOURCE" libs="${libs} -ldl -lrt" |