Skip to content
Snippets Groups Projects
Commit 22d7f32f authored by elivdahan's avatar elivdahan Committed by Andy Green
Browse files

cmake: Fix bzero mis-detection on MinGW

Using a C compiler ignores non-existent functions, and tries to link them anyway.

The compiler optimizes `bzero(buf, 1)` to `movb   $0x0,0xf(%esp)`, so bzero is
not called at all, and the linker succeeds.

Increase the buffer size to 100 to avoid this optimization.
parent 87305c82
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment