summaryrefslogtreecommitdiffstats
path: root/src/netcdf.mk
diff options
context:
space:
mode:
authorRashad <mohammedrashadkm@gmail.com>2015-06-06 16:46:37 (GMT)
committerRashad <mohammedrashadkm@gmail.com>2015-06-06 16:46:37 (GMT)
commite96091ea5391c1363ecfa3da09d35a9d9a785259 (patch)
tree40e7ae3c65e9e1074b821c749d62150a15a3a3db /src/netcdf.mk
parenta97c6bf0b42a7ec8bddf45253e9a236bd218954c (diff)
downloadmxe-e96091ea5391c1363ecfa3da09d35a9d9a785259.zip
mxe-e96091ea5391c1363ecfa3da09d35a9d9a785259.tar.gz
mxe-e96091ea5391c1363ecfa3da09d35a9d9a785259.tar.bz2
enable shared
Diffstat (limited to 'src/netcdf.mk')
-rw-r--r--src/netcdf.mk25
1 files changed, 10 insertions, 15 deletions
diff --git a/src/netcdf.mk b/src/netcdf.mk
index 7a87fb2..360206c 100644
--- a/src/netcdf.mk
+++ b/src/netcdf.mk
@@ -26,20 +26,15 @@ define $(PKG)_BUILD
cd '$(1)' && \
$(SED) -i -e 's/#ifdef IGNORE/#if 0/' libsrc4/nc4hdf.c libsrc4/ncfunc.c libsrc/attr.c ncgen/cvt.c && \
./configure \
- --host='$(TARGET)' \
- --build="`config.guess`" \
- --disable-shared \
- --enable-netcdf-4 \
- --enable-hdf4 \
- --prefix='$(PREFIX)/$(TARGET)' \
- CPPFLAGS="-D_DLGS_H" \
- LIBS="-lmfhdf -ldf -lportablexdr -lws2_32"
- $(MAKE) -C '$(1)' -j '$(JOBS)'
- $(MAKE) -C '$(1)' -j 1 install
-endef
+ $(MXE_CONFIGURE_OPTS) \
+ --enable-netcdf-4 \
+ --enable-hdf4 \
+ --disable-testsets \
+ --disable-examples \
+ CPPFLAGS="-D_DLGS_H -DWIN32_LEAN_AND_MEAN" \
+ LIBS="-lmfhdf -ldf -lportablexdr -lws2_32"
-$(PKG)_BUILD_x86_64-w64-mingw32 =
-$(PKG)_BUILD_i686-w64-mingw32 = $(subst --enable-hdf4, --disable-hdf4,\
- $(subst -lmfhdf -ldf,,$($(PKG)_BUILD)))
+ $(MAKE) -C '$(1)' -j '$(JOBS)' LDFLAGS=-no-undefined
-$(PKG)_BUILD_SHARED =
+ $(MAKE) -C '$(1)' -j 1 install
+endef