Undefined reference to NAME_MAX for MSYS2 build
Radek Barton
radek.barton@microsoft.com
Fri Sep 13 15:24:33 GMT 2024
Hello.
Recent commit https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=a253bea8995323201b016fe477280c1782688ab4 introduced usage of `NAME_MAX` macro in `binutils/dlltool.c` file. It seems that in case of building binutils in MSYS2 environment, namely mingw-w64-binutils package, the only place where this macro is defined in the MSYS2 environment is https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-headers/crt/limits.h but only when `_POSIX_` macro would be defined during the build which is not the case.
I'd like to ask if anyone knows where else the `NAME_MAX` macro should be defined, or if it's expected the `_POSIX_` macro to be defined in case of `*-w64-mingw32` target/host build?
Thank you for the clarification.
Radek Bartoň
More information about the Binutils
mailing list