summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hdf4.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hdf4.mk b/src/hdf4.mk
index 3e37670..93a7d83 100644
--- a/src/hdf4.mk
+++ b/src/hdf4.mk
@@ -25,9 +25,10 @@ define $(PKG)_BUILD
--disable-fortran \
--disable-netcdf \
AR='$(TARGET)-ar' \
+ LIBS="-lportablexdr -lws2_32" \
$(if $(BUILD_SHARED), \
- LIBS="-lportablexdr -lws2_32" CPPFLAGS="-DH4_F77_FUNC\(name,NAME\)=NAME -DH4_BUILT_AS_DYNAMIC_LIB=1 -DBIG_LONGS", \
- LIBS="-lportablexdr -lws2_32" CPPFLAGS="-DH4_F77_FUNC\(name,NAME\)=NAME -DH4_BUILT_AS_STATIC_LIB=1")
+ CPPFLAGS="-DH4_F77_FUNC\(name,NAME\)=NAME -DH4_BUILT_AS_DYNAMIC_LIB=1 -DBIG_LONGS", \
+ CPPFLAGS="-DH4_F77_FUNC\(name,NAME\)=NAME -DH4_BUILT_AS_STATIC_LIB=1")
$(MAKE) -C '$(1)'/mfhdf/xdr -j '$(JOBS)' \
LDFLAGS=-no-undefined