mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-09 00:07:57 +03:00
* 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>
22 lines
528 B
Diff
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";
|