mirror of https://github.com/wolfSSL/wolfTPM.git
docs: update mingw cross-compile for windows
parent
314e96b4cc
commit
c8c382b36c
|
@ -27,7 +27,7 @@ export PREFIX=$PWD/tmp_install
|
||||||
|
|
||||||
cd wolfssl
|
cd wolfssl
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure --prefix="$PREFIX" --enable-certgen --enable-certreq --enable-certext --enable-pkcs7 --enable-cryptocb
|
./configure --prefix="$PREFIX" --enable-wolftpm
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
@ -55,17 +55,20 @@ cd ..
|
||||||
Build
|
Build
|
||||||
```
|
```
|
||||||
export PREFIX=$PWD/tmp_install
|
export PREFIX=$PWD/tmp_install
|
||||||
|
export CFLAGS="-DWIN32 -DMINGW -D_WIN32_WINNT=0x0600 -DUSE_WOLF_STRTOK"
|
||||||
|
export LIBS="-lws2_32"
|
||||||
|
|
||||||
cd wolfssl
|
cd wolfssl
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure --host=i686 CC=i686-w64-mingw32-gcc CFLAGS="-DWIN32 -DMINGW -D_WIN32_WINNT=0x0600" LIBS="-lws2_32" --prefix="$PREFIX" --enable-certgen --enable-certreq --enable-certext --enable-pkcs7 --enable-cryptocb
|
./configure --host=i686 CC=i686-w64-mingw32-gcc --prefix="$PREFIX" --enable-wolftpm
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
|
||||||
cd ../wolftpm/
|
cd ../wolftpm/
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure --host=i686 CC=i686-w64-mingw32-gcc CFLAGS="-DWIN32 -DMINGW -D_WIN32_WINNT=0x0600" LIBS="-lws2_32" --prefix="$PREFIX" --enable-winapi
|
./configure --host=i686 CC=i686-w64-mingw32-gcc --prefix="$PREFIX" --enable-winapi
|
||||||
make
|
make
|
||||||
|
cd ..
|
||||||
```
|
```
|
||||||
|
|
||||||
## Running on Windows
|
## Running on Windows
|
||||||
|
|
Loading…
Reference in New Issue