forked from wolfSSL/wolfssl
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
|
./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
|
### GNAT FSF Compiler and GPRBuild manual installation
|
||||||
In May 2022 AdaCore announced the end of the GNAT Community releases.
|
In May 2022 AdaCore announced the end of the GNAT Community releases.
|
||||||
Pre-built binaries for the GNAT FSF compiler and GPRBuild can be
|
Pre-built binaries for the GNAT FSF compiler and GPRBuild can be
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
project Client is
|
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 Languages use ("C", "Ada");
|
||||||
|
|
||||||
for Source_Dirs use (".",
|
for Source_Dirs use (".",
|
||||||
@ -55,8 +59,16 @@ project Client is
|
|||||||
end Compiler;
|
end Compiler;
|
||||||
|
|
||||||
package Linker is
|
package Linker is
|
||||||
for Switches ("Ada") use
|
case OS is
|
||||||
("-lm"); -- To include the math library (used by WolfSSL).
|
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;
|
end Linker;
|
||||||
|
|
||||||
package Binder is
|
package Binder is
|
||||||
|
@ -72,12 +72,12 @@ project Default is
|
|||||||
|
|
||||||
package Linker is
|
package Linker is
|
||||||
case OS is
|
case OS is
|
||||||
when Windows =>
|
when "Windows" =>
|
||||||
for Switches ("Ada") use
|
for Switches ("Ada") use
|
||||||
("-lm", -- To include the math library (used by WolfSSL).
|
("-lm", -- To include the math library (used by WolfSSL).
|
||||||
"-lcrypt32"); -- Needed on Windows.
|
"-lcrypt32"); -- Needed on Windows.
|
||||||
|
|
||||||
when Linux_Or_Mac =>
|
when "Linux_Or_Mac" =>
|
||||||
for Switches ("Ada") use
|
for Switches ("Ada") use
|
||||||
("-lm"); -- To include the math library (used by WolfSSL).
|
("-lm"); -- To include the math library (used by WolfSSL).
|
||||||
end case;
|
end case;
|
||||||
|
Reference in New Issue
Block a user