summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/hdf5.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/hdf5.mk b/src/hdf5.mk
index 2d1199e..c72d291 100644
--- a/src/hdf5.mk
+++ b/src/hdf5.mk
@@ -40,7 +40,9 @@ define $(PKG)_BUILD
echo 'H5detect.exe > $(TARGET)\H5Tinit.c'; \
echo 'H5make_libsettings.exe > $(TARGET)\H5lib_settings.c';) \
> '$(PREFIX)/$(TARGET)/bin/hdf5-create-settings.bat'
- cp '$(1)/mxe-generated-sources/$(TARGET)/'*.c '$(1)/src/'
+ # workaround until easy way of adding targets is found
+ # cp '$(1)/mxe-generated-sources/$(TARGET)/'*.c '$(1)/src/'
+ cp '$(1)/mxe-generated-sources/$(word 1,$(subst ., ,$(TARGET)))/'*.c '$(1)/src/'
$(MAKE) -C '$(1)'/src -j '$(JOBS)'
$(MAKE) -C '$(1)'/src -j 1 install
@@ -61,3 +63,5 @@ define $(PKG)_BUILD
'$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-hdf5.exe' \
-lhdf5_hl -lhdf5 -lz
endef
+
+$(PKG)_BUILD_SHARED=