Skip to content

Commit

Permalink
win32: alter build flags
Browse files Browse the repository at this point in the history
Add -fno-builtin-strndup to the build flags, otherwise builds with
link-time optimisation can't find strndup.
  • Loading branch information
rmyorston committed Jul 9, 2020
1 parent 251c93f commit 01a2561
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.flags
Expand Up @@ -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
Expand Down

0 comments on commit 01a2561

Please sign in to comment.