gentoo/dev-libs/liboil/files/liboil-0.3.17-c99-configure.patch
Sam James 4c58466ac1
dev-libs/liboil: fix Modern C issue in configure, filter LTO
* Fix modern C issue in configure
* Filter LTO as we already strip-flags etc and it's looong dead & archived
  upstream.

Closes: https://bugs.gentoo.org/906533
Closes: https://bugs.gentoo.org/931004
Signed-off-by: Sam James <sam@gentoo.org>
2024-05-01 06:52:28 +01:00

22 lines
528 B
Diff

https://bugs.gentoo.org/906533
--- a/m4/as-unaligned-access.m4
+++ b/m4/as-unaligned-access.m4
@@ -19,6 +19,7 @@ AC_DEFUN([AS_UNALIGNED_ACCESS], [
fi
if test x"$as_cv_unaligned_access" = x ; then
AC_TRY_RUN([
+#include <string.h>
int main(int argc, char **argv)
{
char array[] = "ABCDEFGH";
--- a/configure
+++ b/configure
@@ -12022,6 +12022,7 @@ else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
+#include <string.h>
int main(int argc, char **argv)
{
char array[] = "ABCDEFGH";