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:
parent
c6234da698
commit
cee762101c
2 changed files with 14 additions and 0 deletions
|
@ -42,6 +42,7 @@ stdenv.mkDerivation {
|
|||
|
||||
patches = [
|
||||
./clasp-pin-repos-commits.patch
|
||||
./remove-unused-command-line-argument.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
|
|
@ -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)
|
Loading…
Reference in a new issue