mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-20 23:51:03 +00:00
usql: fix build with clang 12+
See #166205
(cherry picked from commit 811294e5f0)
This commit is contained in:
committed by
github-actions[bot]
parent
56359ec4ad
commit
aa8fed1cb4
@@ -1,4 +1,5 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, buildGoModule
|
||||
, unixODBC
|
||||
@@ -49,6 +50,11 @@ buildGoModule rec {
|
||||
"no_adodb"
|
||||
];
|
||||
|
||||
# Work around https://github.com/NixOS/nixpkgs/issues/166205.
|
||||
env = lib.optionalAttrs stdenv.cc.isClang {
|
||||
NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}";
|
||||
};
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
|
||||
Reference in New Issue
Block a user