Mercurial > mxe-octave
diff src/hdf5.mk @ 3704:6ac813175f6f
fix hdf5 builds for 64-bit Windows
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 30 Aug 2014 02:03:22 -0400 |
parents | b1a7cff2d2a9 |
children | c611a634efec |
line wrap: on
line diff
--- a/src/hdf5.mk Mon Sep 01 11:58:38 2014 -0400 +++ b/src/hdf5.mk Sat Aug 30 02:03:22 2014 -0400 @@ -16,14 +16,10 @@ LIBS=-lws2_32 \ hdf5_cv_gettimeofday_tz=no \ hdf5_cv_vsnprintf_works=yes \ - hdf5_cv_printf_ll=l \ - hdf5_cv_system_scope_threads=yes \ hdf5_cv_ldouble_to_integer_works=yes \ hdf5_cv_ulong_to_float_accurate=yes \ - hdf5_cv_ulong_to_fp_bottom_bit_accurate=no \ hdf5_cv_fp_to_ullong_accurate=yes \ hdf5_cv_fp_to_ullong_right_maximum=no \ - hdf5_cv_fp_to_ullong_right_maximum=no \ hdf5_cv_ldouble_to_uint_accurate=yes \ hdf5_cv_ullong_to_ldouble_precision=yes \ hdf5_cv_fp_to_integer_overflow_works=yes \ @@ -31,6 +27,23 @@ hdf5_cv_long_to_ldouble_special=no \ hdf5_cv_ldouble_to_llong_accurate=yes \ hdf5_cv_llong_to_ldouble_correct=yes + ifeq ($(TARGET),x86_64-w64-mingw32) + $(PKG)_CROSS_CONFIG_OPTIONS += \ + hdf5_cv_printf_ll=ll \ + hdf5_cv_system_scope_threads=no \ + hdf5_cv_ldouble_to_integer_accurate=yes \ + hdf5_cv_ulong_to_fp_bottom_bit_accurate=yes \ + ac_cv_sizeof_long=4 \ + ac_cv_sizeof_long_double=16 \ + ac_cv_sizeof_long_long=8 \ + ac_cv_sizeof_off_t=8 \ + ac_cv_sys_file_offset_bits=64 + else + $(PKG)_CROSS_CONFIG_OPTIONS += \ + hdf5_cv_printf_ll=l \ + hdf5_cv_system_scope_threads=yes \ + hdf5_cv_ulong_to_fp_bottom_bit_accurate=no + endif endif endif @@ -44,6 +57,15 @@ endef define $(PKG)_BUILD + case '$(TARGET)' in \ + x86_64-w64-mingw32) \ + cp '$(1)/src/H5Tinit.c.mingw64' '$(1)/src/H5Tinit.c.mingw' \ + ;; \ + i686-w64-mingw32) \ + cp '$(1)/src/H5Tinit.c.mingw32' '$(1)/src/H5Tinit.c.mingw' \ + ;; \ + esac + # build GCC and support libraries cd '$(1)' && autoreconf mkdir '$(1)/.build'