From 01a256149453c0dc108a7063ac48f8498c4663da Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 9 Jul 2020 16:03:57 +0100 Subject: win32: alter build flags Add -fno-builtin-strndup to the build flags, otherwise builds with link-time optimisation can't find strndup. --- Makefile.flags | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.flags b/Makefile.flags index 2c3fd0d25..ef9200f93 100644 --- a/Makefile.flags +++ b/Makefile.flags @@ -146,7 +146,7 @@ export SYSROOT=$(CONFIG_SYSROOT) endif ifeq ($(CONFIG_PLATFORM_MINGW32),y) -CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0 -fno-builtin-stpcpy -fno-ident +CFLAGS += -Iwin32 -DHAVE_STRING_H=1 -DHAVE_CONFIG_H=0 -fno-builtin-stpcpy -fno-ident -fno-builtin-strndup EXEEXT = .exe LDLIBS += ws2_32 endif -- cgit v1.2.3-55-g6feb