gentoo-ebuilds/media-video/mjpegtools/files/mjpegtools-2.2.1-puts-c99-configure.patch
Sam James 3f8de491a1
media-video/mjpegtools: various correctness fixes
* Fix build with GCC 15
* Fix LTO safety
* Fix C99 issue in configure

Closes: https://bugs.gentoo.org/899868
Closes: https://bugs.gentoo.org/927103
Closes: https://bugs.gentoo.org/936562
Signed-off-by: Sam James <sam@gentoo.org>
2024-07-27 22:57:44 +01:00

13 lines
682 B
Diff

https://sourceforge.net/p/mjpeg/bugs/144/
https://bugs.gentoo.org/899868
--- a/configure.ac
+++ b/configure.ac
@@ -236,7 +236,7 @@ dnl Check to see if __progname is provided by the system
dnl ********************************************************************
AC_CACHE_CHECK([for __progname],
[mjt_cv_extern___progname],
- [AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],
+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]],
[[extern char *__progname;
puts(__progname);]])],
[mjt_cv_extern___progname=yes],