Makefile: Avoid using built-in stpcpy during clang build
authorErwan Velu <e.velu@criteo.com>
Wed, 2 Jun 2021 14:15:59 +0000 (16:15 +0200)
committerErwan Velu <e.velu@criteo.com>
Wed, 2 Jun 2021 15:26:11 +0000 (17:26 +0200)
commit4b0e335a05f3a082a4f051304ba9bb6f36af4432
tree3e0cd27644f228d997efc8d20b1f0926930890b2
parent1a1e8144846b175a5858a92a68bc8e6279a549e4
Makefile: Avoid using built-in stpcpy during clang build

Since clang 12, during the clang build, noticed by the CI, the linking
fails as clang optimize some string functions to stpcpy.

  LINK fio
lld-link: error: undefined symbol: stpcpy
>>> referenced by C:\projects\fio\options.c:5305
>>>               options.o:(fio_options_parse)

Two possible implementations :
- Adding stpcpy in fio as the kernel did : https://lore.kernel.org/lkml/20200815002417.1512973-1-ndesaulniers@google.com/T/
- Disable the implicit stpcpy

To avoid adding code into fio, the latter option was used.

Signed-off-by: Erwan Velu <e.velu@criteo.com>
Makefile