···11+Manually tell the compiler that strlcpy exists. The `try-build` function seems
22+somewhat broken, i.e. any code that I try to pass to it doesn't link because of an
33+"undefined reference to main" error (and some more quoting issues with newlines being
44+swalloed).
55+66+Because both musl and glibc seemt o support strlcpy nowadays, I decided to just skip the
77+possibly broken feature-check and hardcode that it exists.
88+99+diff --git a/Makefile b/Makefile
1010+index ed2414b..37be9cd 100644
1111+--- a/Makefile
1212++++ b/Makefile
1313+@@ -239,10 +239,8 @@ endif
1414+ # On a given system, some libs may link statically, some may not; so, check
1515+ # both and only build those that link!
1616+1717+-ifeq ($(call try-build,$(SOURCE_STRLCPY),$(CFLAGS),$(LDFLAGS)),y)
1818+- CFLAGS_DYNOPT += -DHAVE_STRLCPY
1919+- CFLAGS_STATOPT += -DHAVE_STRLCPY
2020+-endif
2121++CFLAGS_DYNOPT += -DHAVE_STRLCPY
2222++CFLAGS_STATOPT += -DHAVE_STRLCPY
2323+2424+ ifeq ($(call try-build,$(SOURCE_BFD),$(CFLAGS),$(LDFLAGS) -lbfd -static),y)
2525+ CFLAGS_STATOPT += -DCONFIG_HAS_BFD