From 2f3bfe8d3623e693b87afbcb3081a22cdeb9056b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Kopp?= Date: Fri, 14 Jun 2024 14:47:13 +0200 Subject: [PATCH] force using -std=c89 when compiling Tk::JPEG on macOS #8 --- .../patches/Tk-JPEG-Makefile.jpeg.maybe.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tred_refactored/devel/unix_install/packages_unix/patches/Tk-JPEG-Makefile.jpeg.maybe.patch diff --git a/tred_refactored/devel/unix_install/packages_unix/patches/Tk-JPEG-Makefile.jpeg.maybe.patch b/tred_refactored/devel/unix_install/packages_unix/patches/Tk-JPEG-Makefile.jpeg.maybe.patch new file mode 100644 index 000000000..7a76001a5 --- /dev/null +++ b/tred_refactored/devel/unix_install/packages_unix/patches/Tk-JPEG-Makefile.jpeg.maybe.patch @@ -0,0 +1,15 @@ +--- JPEG/Makefile.jpeg.maybe.orig 2020-03-19 21:41:00.000000000 +0100 ++++ JPEG/Makefile.jpeg.maybe 2024-06-14 14:35:38.313024340 +0200 +@@ -31,9 +31,10 @@ + } + else + { ++ my $ccstdflags = ($^O eq 'darwin') ? '-std=c89' : ''; + $ENV{CC} = $Config{cc}; +- local $ENV{CFLAGS} = "$Config{ccflags} $Config{cccdlflags}"; +- local $ENV{LDFLAGS} = "$Config{ccflags} $Config{ldflags}"; ++ local $ENV{CFLAGS} = "$ccstdflags $Config{ccflags} $Config{cccdlflags}"; ++ local $ENV{LDFLAGS} = "$ccstdflags $Config{ccflags} $Config{ldflags}"; + system(sh => "./configure"); + } +