about summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorPhilip Taron <philip.taron@gmail.com>2023-12-13 23:02:04 -0800
committerPhilip Taron <philip.taron@gmail.com>2023-12-13 23:40:35 -0800
commitcee762101c7240812e8d638e16ba60be4dabc364 (patch)
tree92d7803b1b6d7de624f3988672b0aa4709d42645 /pkgs/development/compilers
parentc6234da6986ff31c58c7dd86d7741a1cf2fa44d3 (diff)
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]
```
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/clasp/default.nix1
-rw-r--r--pkgs/development/compilers/clasp/remove-unused-command-line-argument.patch13
2 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/development/compilers/clasp/default.nix b/pkgs/development/compilers/clasp/default.nix
index c9389d655ce52..a099272f21680 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 0000000000000..b5c2d0bf39c3b
--- /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)