ff5db45d47
Clang builds use getopt.c in librte_eal while MinGW provides
implementation as part of the toolchain. Statically linking librte_eal
to an application that depends on getopt results in undefined reference
errors with MinGW. There are no such errors with Clang, because with
Clang librte_eal actually defines getopt functions.
Use getopt.c in EAL with Clang and MinGW to get identical behavior.
Adjust code for MinGW. Incidentally, this removes a bug when free() is
called on uninitialized memory.
Fixes:
|
||
---|---|---|
.. | ||
include | ||
eal_debug.c | ||
eal_file.c | ||
eal_hugepages.c | ||
eal_interrupts.c | ||
eal_lcore.c | ||
eal_log.c | ||
eal_memalloc.c | ||
eal_memory.c | ||
eal_mp.c | ||
eal_thread.c | ||
eal_timer.c | ||
eal_windows.h | ||
eal.c | ||
fnmatch.c | ||
getopt.c | ||
meson.build |