changeset 3222:5072829ce458

hdf5.mk: set configure environment for native builds
author John W. Eaton <jwe@octave.org>
date Thu, 08 Aug 2013 11:46:36 -0400
parents c05da3e2f652
children 94339f5a27fe
files src/hdf5.mk
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hdf5.mk	Thu Aug 08 11:44:44 2013 -0400
+++ b/src/hdf5.mk	Thu Aug 08 11:46:36 2013 -0400
@@ -33,6 +33,10 @@
   endif
 endif
 
+ifeq ($(MXE_NATIVE_BUILD),yes)
+  $(PKG)_CONFIGURE_ENV := LD_LIBRARY_PATH=$(LD_LIBRARY_PATH)
+endif
+
 define $(PKG)_UPDATE
     echo 'Warning: Updates are temporarily disabled for package hdf5.' >&2;
     echo $(hdf5_VERSION)
@@ -42,7 +46,7 @@
     # build GCC and support libraries
     cd '$(1)' && autoreconf
     mkdir '$(1)/.build'
-    cd '$(1)/.build' && '$(1)/configure' \
+    cd '$(1)/.build' && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \
         $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
         $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
         $(ENABLE_SHARED_OR_STATIC) \