diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-10-29 11:34:21 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-10-29 11:37:59 +0300 |
commit | c0e2c507f11e43f043a866514b5b75c60f71dc53 (patch) | |
tree | 918c80505dd96fc9e364693834bd732805eda71a /extra | |
parent | d4c81638d9087f5c344b0e86de6b2b3827c84f58 (diff) | |
download | bdwgc-c0e2c507f11e43f043a866514b5b75c60f71dc53.tar.gz |
Build with GC_wcsdup support if wcslen exists
Now, digimars.mak, NT_MAKEFILE and WCC_MAKEFILE scripts pass
-D GC_REQUIRE_WCSDUP option to the compiler unconditionally to build
GC_wcsdup API function. CMakeLists.txt and configure.ac pass this
option to the compiler after successful probing whether wcslen() is
provided on the host. Makefile.direct does not pass the option by
default, only the comment about the option is added (because this
script cannot check availability of wcslen in libc).
* CMakeLists.txt (HAVE_WCSLEN): Set if wcslen symbol exists in wchar.h.
* Makefile.direct (CFLAGS_EXTRA): Add comment of -D GC_REQUIRE_WCSDUP.
* NT_MAKEFILE (CFLAGS_DEFAULT): Add -D GC_REQUIRE_WCSDUP.
* WCC_MAKEFILE (DEFS): Likewise.
* digimars.mak (DEFINES): Likewise.
* configure.ac (GC_REQUIRE_WCSDUP): Define if the code snippet
including wchar.h and calling wcslen() can be compiled and linked.
Diffstat (limited to 'extra')
0 files changed, 0 insertions, 0 deletions