mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Updated the README.md and updated client.gpr
This commit is contained in:
@ -73,6 +73,13 @@ cd obj/
|
||||
./tls_client_main 127.0.0.1
|
||||
```
|
||||
|
||||
On Windows, build the executables with:
|
||||
```sh
|
||||
gprbuild -XOS=Windows default.gpr
|
||||
gprbuild -XOS=Windows client.gpr
|
||||
```
|
||||
|
||||
|
||||
### GNAT FSF Compiler and GPRBuild manual installation
|
||||
In May 2022 AdaCore announced the end of the GNAT Community releases.
|
||||
Pre-built binaries for the GNAT FSF compiler and GPRBuild can be
|
||||
|
@ -1,4 +1,8 @@
|
||||
project Client is
|
||||
type OS_Kind is ("Windows", "Linux_Or_Mac");
|
||||
|
||||
OS : OS_Kind := external ("OS", "Linux_Or_Mac");
|
||||
|
||||
for Languages use ("C", "Ada");
|
||||
|
||||
for Source_Dirs use (".",
|
||||
@ -55,8 +59,16 @@ project Client is
|
||||
end Compiler;
|
||||
|
||||
package Linker is
|
||||
for Switches ("Ada") use
|
||||
("-lm"); -- To include the math library (used by WolfSSL).
|
||||
case OS is
|
||||
when "Windows" =>
|
||||
for Switches ("Ada") use
|
||||
("-lm", -- To include the math library (used by WolfSSL).
|
||||
"-lcrypt32"); -- Needed on Windows.
|
||||
|
||||
when "Linux_Or_Mac" =>
|
||||
for Switches ("Ada") use
|
||||
("-lm"); -- To include the math library (used by WolfSSL).
|
||||
end case;
|
||||
end Linker;
|
||||
|
||||
package Binder is
|
||||
|
@ -72,12 +72,12 @@ project Default is
|
||||
|
||||
package Linker is
|
||||
case OS is
|
||||
when Windows =>
|
||||
when "Windows" =>
|
||||
for Switches ("Ada") use
|
||||
("-lm", -- To include the math library (used by WolfSSL).
|
||||
"-lcrypt32"); -- Needed on Windows.
|
||||
|
||||
when Linux_Or_Mac =>
|
||||
when "Linux_Or_Mac" =>
|
||||
for Switches ("Ada") use
|
||||
("-lm"); -- To include the math library (used by WolfSSL).
|
||||
end case;
|
||||
|
Reference in New Issue
Block a user