nixpkgs-suyu/pkgs/development/compilers/clasp/remove-unused-command-line-argument.patch
Philip Taron cee762101c
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]
```
2023-12-13 23:40:35 -08:00

13 lines
828 B
Diff

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)