On Saturday 2014-12-13 00:08, Brent Cook wrote:
>> On Dec 12, 2014, at 5:04 PM, Jan Engelhardt <[email protected]> wrote:
>>
>> To solve that, simply add
>>
>> libcrypto_la_LDFLAGS = -no-undefined
>> [same for libssl,libtls]
>>
>> Without this, the DLLs won't be produced.
>
>Thanks for the hint, will do!
For reference, here is the full patch I needed.
---
crypto/Makefile.am | 2 +-
crypto/bio/bss_log.c | 4 ++--
ssl/Makefile.am | 3 ++-
tls/Makefile.am | 3 ++-
4 files changed, 7 insertions(+), 5 deletions(-)
Index: libressl-2.1.2/crypto/Makefile.am
===================================================================
--- libressl-2.1.2.orig/crypto/Makefile.am
+++ libressl-2.1.2/crypto/Makefile.am
@@ -8,7 +8,7 @@ lib_LTLIBRARIES = libcrypto.la
EXTRA_DIST = VERSION
-libcrypto_la_LDFLAGS = -version-info @LIBCRYPTO_VERSION@
+libcrypto_la_LDFLAGS = -version-info @LIBCRYPTO_VERSION@ -no-undefined
libcrypto_la_LIBADD = libcompat.la libcompatnoopt.la
libcrypto_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS)
libcrypto_la_CFLAGS += -DOPENSSL_NO_HW_PADLOCK
Index: libressl-2.1.2/crypto/bio/bss_log.c
===================================================================
--- libressl-2.1.2.orig/crypto/bio/bss_log.c
+++ libressl-2.1.2/crypto/bio/bss_log.c
@@ -70,7 +70,7 @@
#include <openssl/buffer.h>
#include <openssl/err.h>
-#ifndef NO_SYSLOG
+#if !defined(_WIN32) && !defined(NO_SYSLOG)
static int slg_write(BIO *h, const char *buf, int num);
static int slg_puts(BIO *h, const char *str);
@@ -210,4 +210,4 @@ xcloselog(BIO* bp)
closelog();
}
-#endif /* NO_SYSLOG */
+#endif /* !WIN32 && !NO_SYSLOG */
Index: libressl-2.1.2/ssl/Makefile.am
===================================================================
--- libressl-2.1.2.orig/ssl/Makefile.am
+++ libressl-2.1.2/ssl/Makefile.am
@@ -4,8 +4,9 @@ lib_LTLIBRARIES = libssl.la
EXTRA_DIST = VERSION
-libssl_la_LDFLAGS = -version-info @LIBSSL_VERSION@
+libssl_la_LDFLAGS = -version-info @LIBSSL_VERSION@ -no-undefined
libssl_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS)
+libssl_la_LIBADD = ../crypto/libcrypto.la
libssl_la_SOURCES = bio_ssl.c
libssl_la_SOURCES += d1_both.c
Index: libressl-2.1.2/tls/Makefile.am
===================================================================
--- libressl-2.1.2.orig/tls/Makefile.am
+++ libressl-2.1.2/tls/Makefile.am
@@ -5,8 +5,9 @@ lib_LTLIBRARIES = libtls.la
EXTRA_DIST = VERSION
-libtls_la_LDFLAGS = -version-info @LIBTLS_VERSION@
+libtls_la_LDFLAGS = -version-info @LIBTLS_VERSION@ -no-undefined
libtls_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS)
+libtls_la_LIBADD = ../ssl/libssl.la
libtls_la_SOURCES = tls.c
libtls_la_SOURCES += tls_client.c