I would like to build and integrate wolfssl statically in a c++ Windows project.
I've tried to follow the official tutorial, but this seems to give a .dll, which is, correct me if I am wrong, dynamic.
Is there any solution to build a .lib and integrate it during compilation ?
If this is the case, what is the command to integrate this .lib to a makefile ?
Here is the makefile I tried to use, but functions of wolfssl.lib are still not found :
CC=mingw32-g++
CFLAGS=-Wall -s -Os -g
LDFLAGS=-shared-libstdc++ -std=c++11 -static -L. -lwolfssl.lib
EXECNAME=main
O_FILES=Main.o
all: $(O_FILES)
$(CC) -o $(EXECNAME) $(O_FILES)
Main.o: Main.cpp Global.h
$(CC) $(LDFLAGS) $(CFLAGS) $(COMPFLAGS) -c Main.cpp -o Main.o
If something isn't clear, I can add needed details.