Unverified Commit 19ba5793 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #269290 from anthonyroussel/bugfix/usql

usql: fix build with clang 12+
parents fb077901 811294e5
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"