Unverified Commit 811294e5 authored by Anthony Roussel's avatar Anthony Roussel
Browse files

usql: fix build with clang 12+

See #166205
parent 3b688245
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
{ 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"