From af39e3e5972238f8cebf69e617c1f1005033a014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 10 Aug 2015 16:41:14 +0200 Subject: [PATCH] Fix missing -static-libgcc for dlls --- ChangeLog | 2 ++ library/Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d0a98b605..51f3049d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,8 @@ Bugfix * Fix thread-safety issue in SSL debug module (found by Edwin van Vliet). * Fix build error with CMake and pre-4.5 versions of GCC (found by Hugo Leisink). + * Fix missing -static-ligcc when building shared libraries for Windows with + make. Changes * Add SSL_MIN_DHM_BYTES configuration parameter in config.h to choose the diff --git a/library/Makefile b/library/Makefile index dffb8a4f1..8be2d4f92 100644 --- a/library/Makefile +++ b/library/Makefile @@ -83,7 +83,7 @@ libpolarssl.dylib: libpolarssl.a libpolarssl.dll: libpolarssl.a echo " LD $@" - $(CC) -shared -Wl,-soname,$@ -o $@ $(OBJS) -lws2_32 -lwinmm -lgdi32 + $(CC) -shared -Wl,-soname,$@ -o $@ $(OBJS) -lws2_32 -lwinmm -lgdi32 -static-libgcc .c.o: echo " CC $<"