From 97e2de2a5fd58521c2f5d02b3821eb7df39e88a9 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Tue, 20 Apr 2010 14:54:58 +0000 Subject: [PATCH] pexports is only available if MSVC is installed. Encapsulate it in a conditional. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19042 57a11ea4-9604-0410-9ed3-97b8803252fd --- packaging/win32/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packaging/win32/install.sh b/packaging/win32/install.sh index f3dedf270e..53b800ad4a 100644 --- a/packaging/win32/install.sh +++ b/packaging/win32/install.sh @@ -394,7 +394,10 @@ function inst_guile() { #endif EOF # Also, for MSVC compiler we need to create an import library - pexports $_GUILE_UDIR/bin/libguile.dll > $_GUILE_UDIR/lib/libguile.def + if [ x"$(which pexports.exe > /dev/null 2>&1)" != x ] + then + pexports $_GUILE_UDIR/bin/libguile.dll > $_GUILE_UDIR/lib/libguile.def + fi ${DLLTOOL} -d $_GUILE_UDIR/lib/libguile.def -D $_GUILE_UDIR/bin/libguile.dll -l $_GUILE_UDIR/lib/libguile.lib # Also, for MSVC compiler we need to slightly modify the gc.h header GC_H=$_GUILE_UDIR/include/libguile/gc.h