package hdf5: disable shared build and workaround for generated sources

This commit is contained in:
Tony Theodore 2014-02-10 03:43:46 +11:00
parent 837ecd6648
commit 2c2cd131fe
1 changed files with 5 additions and 1 deletions

View File

@ -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=