diff options
| author | Khem Raj <raj.khem@gmail.com> | 2019-12-11 23:46:33 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2019-12-13 18:29:14 -0800 |
| commit | 7906fbb404b7a3138f43f32781de36872c18a71c (patch) | |
| tree | 4ce69d494fb209a6b4e03345e1298966e1f53679 /meta-oe/recipes-support/hdf5/files | |
| parent | 9625a375eea655d02cb3d45ff98d56c821dda297 (diff) | |
| download | meta-openembedded-7906fbb404b7a3138f43f32781de36872c18a71c.tar.gz | |
hdf5: Upgrade to 1.8.21
Forward port 0001-cross-compiling-support.patch
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/hdf5/files')
| -rw-r--r-- | meta-oe/recipes-support/hdf5/files/0001-cross-compiling-support.patch | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/meta-oe/recipes-support/hdf5/files/0001-cross-compiling-support.patch b/meta-oe/recipes-support/hdf5/files/0001-cross-compiling-support.patch index 97f16bbc0b..bdc1fa5f96 100644 --- a/meta-oe/recipes-support/hdf5/files/0001-cross-compiling-support.patch +++ b/meta-oe/recipes-support/hdf5/files/0001-cross-compiling-support.patch | |||
| @@ -14,11 +14,9 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | |||
| 14 | src/CMakeLists.txt | 23 ----------------------- | 14 | src/CMakeLists.txt | 23 ----------------------- |
| 15 | 2 files changed, 6 insertions(+), 23 deletions(-) | 15 | 2 files changed, 6 insertions(+), 23 deletions(-) |
| 16 | 16 | ||
| 17 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 18 | index 08a65c4..9af14d5 100644 | ||
| 19 | --- a/CMakeLists.txt | 17 | --- a/CMakeLists.txt |
| 20 | +++ b/CMakeLists.txt | 18 | +++ b/CMakeLists.txt |
| 21 | @@ -817,4 +817,10 @@ endif () | 19 | @@ -770,4 +770,10 @@ endif () |
| 22 | #----------------------------------------------------------------------------- | 20 | #----------------------------------------------------------------------------- |
| 23 | configure_file (${HDF_RESOURCES_DIR}/H5pubconf.h.in ${HDF5_BINARY_DIR}/H5pubconf.h @ONLY) | 21 | configure_file (${HDF_RESOURCES_DIR}/H5pubconf.h.in ${HDF5_BINARY_DIR}/H5pubconf.h @ONLY) |
| 24 | 22 | ||
| @@ -29,22 +27,22 @@ index 08a65c4..9af14d5 100644 | |||
| 29 | +configure_file(H5lib_settings.c H5lib_settings.c COPYONLY) | 27 | +configure_file(H5lib_settings.c H5lib_settings.c COPYONLY) |
| 30 | + | 28 | + |
| 31 | include (CMakeInstallation.cmake) | 29 | include (CMakeInstallation.cmake) |
| 32 | diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
| 33 | index d343208..d11525b 100644 | ||
| 34 | --- a/src/CMakeLists.txt | 30 | --- a/src/CMakeLists.txt |
| 35 | +++ b/src/CMakeLists.txt | 31 | +++ b/src/CMakeLists.txt |
| 36 | @@ -613,32 +613,9 @@ set (H5_PRIVATE_HEADERS | 32 | @@ -613,36 +613,9 @@ set (H5_PRIVATE_HEADERS |
| 37 | #----------------------------------------------------------------------------- | 33 | #----------------------------------------------------------------------------- |
| 38 | add_executable (H5detect ${HDF5_SRC_DIR}/H5detect.c) | 34 | add_executable (H5detect ${HDF5_SRC_DIR}/H5detect.c) |
| 39 | TARGET_C_PROPERTIES (H5detect STATIC " " " ") | 35 | TARGET_C_PROPERTIES (H5detect STATIC " " " ") |
| 40 | -if (MSVC OR MINGW) | 36 | -if (MSVC OR MINGW) |
| 41 | - target_link_libraries (H5detect "ws2_32.lib") | 37 | - target_link_libraries (H5detect "ws2_32.lib") |
| 42 | -endif () | 38 | -endif () |
| 39 | -if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten") | ||
| 40 | - set_property(TARGET H5detect PROPERTY LINK_FLAGS "-O0") | ||
| 41 | -endif () | ||
| 43 | - | 42 | - |
| 44 | -set (CMD $<TARGET_FILE:H5detect>) | ||
| 45 | -add_custom_command ( | 43 | -add_custom_command ( |
| 46 | - OUTPUT ${HDF5_BINARY_DIR}/H5Tinit.c | 44 | - OUTPUT ${HDF5_BINARY_DIR}/H5Tinit.c |
| 47 | - COMMAND ${CMD} | 45 | - COMMAND $<TARGET_FILE:H5detect> |
| 48 | - ARGS > ${HDF5_BINARY_DIR}/H5Tinit.c | 46 | - ARGS > ${HDF5_BINARY_DIR}/H5Tinit.c |
| 49 | - DEPENDS H5detect | 47 | - DEPENDS H5detect |
| 50 | -) | 48 | -) |
| @@ -54,11 +52,13 @@ index d343208..d11525b 100644 | |||
| 54 | -if (MSVC OR MINGW) | 52 | -if (MSVC OR MINGW) |
| 55 | - target_link_libraries (H5make_libsettings "ws2_32.lib") | 53 | - target_link_libraries (H5make_libsettings "ws2_32.lib") |
| 56 | -endif () | 54 | -endif () |
| 55 | -if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten") | ||
| 56 | - set_property(TARGET H5make_libsettings PROPERTY LINK_FLAGS "-O0") | ||
| 57 | -endif () | ||
| 57 | - | 58 | - |
| 58 | -set (CMD $<TARGET_FILE:H5make_libsettings>) | ||
| 59 | -add_custom_command ( | 59 | -add_custom_command ( |
| 60 | - OUTPUT ${HDF5_BINARY_DIR}/H5lib_settings.c | 60 | - OUTPUT ${HDF5_BINARY_DIR}/H5lib_settings.c |
| 61 | - COMMAND ${CMD} | 61 | - COMMAND $<TARGET_FILE:H5make_libsettings> |
| 62 | - ARGS > ${HDF5_BINARY_DIR}/H5lib_settings.c | 62 | - ARGS > ${HDF5_BINARY_DIR}/H5lib_settings.c |
| 63 | - DEPENDS H5make_libsettings | 63 | - DEPENDS H5make_libsettings |
| 64 | - WORKING_DIRECTORY ${HDF5_BINARY_DIR} | 64 | - WORKING_DIRECTORY ${HDF5_BINARY_DIR} |
| @@ -66,6 +66,3 @@ index d343208..d11525b 100644 | |||
| 66 | 66 | ||
| 67 | if (GENERATE_ERROR_HEADERS) | 67 | if (GENERATE_ERROR_HEADERS) |
| 68 | find_package (Perl) | 68 | find_package (Perl) |
| 69 | -- | ||
| 70 | 2.7.4 | ||
| 71 | |||
