-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ImageMagick: Silence flood of deprecation warnings from GCC
I believe this is Nix-specific as it didn't appear during manual build on Arch or in upstream's CI (Ubuntu Docker image). The message, printed for every source file, 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;;]
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
pkgs/applications/graphics/ImageMagick/0001-Silence-flood-of-deprecation-warnings.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <[email protected]> | ||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters