From cee762101c7240812e8d638e16ba60be4dabc364 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Wed, 13 Dec 2023 23:02:04 -0800 Subject: [PATCH] clasp-common-lisp: fix build warning This resolves the annoying message for every compilation line: ``` clang-15: warning: argument unused during compilation: '-stdlib=libstdc++' [-Wunused-command-line-argument] ``` --- pkgs/development/compilers/clasp/default.nix | 1 + .../clasp/remove-unused-command-line-argument.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 pkgs/development/compilers/clasp/remove-unused-command-line-argument.patch diff --git a/pkgs/development/compilers/clasp/default.nix b/pkgs/development/compilers/clasp/default.nix index c9389d655ce5..a099272f2168 100644 --- a/pkgs/development/compilers/clasp/default.nix +++ b/pkgs/development/compilers/clasp/default.nix @@ -42,6 +42,7 @@ stdenv.mkDerivation { patches = [ ./clasp-pin-repos-commits.patch + ./remove-unused-command-line-argument.patch ]; nativeBuildInputs = [ diff --git a/pkgs/development/compilers/clasp/remove-unused-command-line-argument.patch b/pkgs/development/compilers/clasp/remove-unused-command-line-argument.patch new file mode 100644 index 000000000000..b5c2d0bf39c3 --- /dev/null +++ b/pkgs/development/compilers/clasp/remove-unused-command-line-argument.patch @@ -0,0 +1,13 @@ +diff --git a/src/koga/units.lisp b/src/koga/units.lisp +index 808cebd17..2bbf965fd 100644 +--- a/src/koga/units.lisp ++++ b/src/koga/units.lisp +@@ -197,7 +197,7 @@ + :type :cxxflags) + #+darwin (append-cflags configuration "-stdlib=libc++" :type :cxxflags) + #+darwin (append-cflags configuration "-I/usr/local/include") +- #+linux (append-cflags configuration "-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fno-stack-protector -stdlib=libstdc++" ++ #+linux (append-cflags configuration "-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fno-stack-protector" + :type :cxxflags) + #+linux (append-cflags configuration "-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fno-stack-protector" + :type :cflags)