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]
```
This commit is contained in:
Philip Taron 2023-12-13 23:02:04 -08:00
parent c6234da698
commit cee762101c
No known key found for this signature in database
2 changed files with 14 additions and 0 deletions

View file

@ -42,6 +42,7 @@ stdenv.mkDerivation {
patches = [
./clasp-pin-repos-commits.patch
./remove-unused-command-line-argument.patch
];
nativeBuildInputs = [

View file

@ -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)