summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild_static_win32_libs.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/build_static_win32_libs.sh b/build_static_win32_libs.sh
index cfa116b..b22c530 100755
--- a/build_static_win32_libs.sh
+++ b/build_static_win32_libs.sh
@@ -213,6 +213,7 @@ tar xfvj "$DOWNLOAD/libgcrypt-$VERSION_libgcrypt.tar.bz2"
cd "libgcrypt-$VERSION_libgcrypt"
sed '26i\#include <ws2tcpip.h>' -i src/gcrypt.h.in
sed '26i\#include <ws2tcpip.h>' -i src/ath.h
+sed 's,sys/times.h,sys/time.h,' -i cipher/random.c
./configure \
--build="$BUILD" --host="$TARGET" \
--disable-shared \
@@ -276,7 +277,9 @@ cd "libpng-$VERSION_libpng"
./configure \
--build="$BUILD" --host="$TARGET" \
--disable-shared \
- --prefix="$PREFIX"
+ --prefix="$PREFIX" \
+ CFLAGS="-I$PREFIX/include" \
+ LDFLAGS="-L$PREFIX/lib"
make install bin_PROGRAMS= noinst_PROGRAMS=