| 1 |
Test that configurator always picks the value of the `c_libraries` |
| 2 |
flag from `ocamlc -config`. If not, there's a failure to link a |
| 3 |
configuration test program that uses functions from these libraries. |
| 4 |
For that, we need functions outside of libc. On Unix, that would be |
| 5 |
`sin(3)` that requires the `-lm` flag for the math library, and on |
| 6 |
Windows `gethostname` that requires WinSock2 (`ws2_32.dll`). |
| 7 |
|
| 8 |
link successfully |
| 9 |
================================== |
| 10 |
|
| 11 |
$ dune exec -- ./discover.exe |
| 12 |
$ cat out |
| 13 |
1 |