Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
From 9fc749739371e4b61f38ec628fc2949814c6814f Mon Sep 17 00:00:00 2001
From: YoshiRulz <OSSYoshiRulz@gmail.com>
Date: Wed, 12 Oct 2022 18:15:34 +1000
Subject: [PATCH] Silence flood of deprecation warnings

message is:
cc1: warning: '-mtune=x86-64' is deprecated; use '-mtune=k8' or '-mtune=generic'
instead as appropriate
[8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wdeprecated-Wdeprecated8;;]
---
configure | 1 +
1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index c8ca87bea..ee42666bf 100755
--- a/configure
+++ b/configure
@@ -9336,6 +9336,7 @@ fi
for flag_prefix in $flag_prefixes; do
for arch in $ax_gcc_arch; do
flag="$flag_prefix$arch"
+ if test "x$flag" = "x-mtune=x86-64"; then flag="-mtune=generic"; fi # deprecated
as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
printf %s "checking whether C compiler accepts $flag... " >&6; }
--
2.36.2

2 changes: 2 additions & 0 deletions pkgs/applications/graphics/ImageMagick/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ stdenv.mkDerivation (finalAttrs: {

enableParallelBuilding = true;

patches = [ ./0001-Silence-flood-of-deprecation-warnings.patch ];

configureFlags = [
# specify delegates explicitly otherwise `convert` will invoke the build
# coreutils for filetypes it doesn't natively support.
Expand Down