View Ticket
Ticket Hash: bbc3b827e156a4a98c23305f1a1ee7c25d036bdd
Title: windows build: tls: msys2 requires -lwsock32 and configure issues
Status: Open Type: Build Problem
Severity: Minor Priority:
Subsystem: Resolution:
Last Modified: 2017-08-25 18:00:14
Version Found In: 0.10.2
Description:
Building the tcltls package...

a) Windows build with msys2 (libcrypto) requires -lwsock32
    so I set KC_TLS_LIBS=-lwsock32

b) But the configure script puts this before the -lssl -lcrypto and the
    configure test for basic ssl functionality fails.
   
I added the following to tls/build.sh preconfigure()
sed -i -e '/^LIBS/ s,=.*,="${TCLTLS_SSL_LIBS} ${LIBS}",' configure
# two tabs
sed -i -e '/^           LIBS.*SAVE_LIBS.*TCLTLS/ s,=.*,="${TCLTLS_SSL_LIBS} ${SAVE_LIBS}",' configure

That's working now.

And on to the next problem...
/usr/bin/install -c tcltls.lib '/home/bll/tcl-bdj/kitcreator/tls/inst/lib/tcltls1.7.12'
/usr/bin/install: cannot stat 'tcltls.lib': No such file or directory