Merge pull request #138920 from trofi/fix-upx-werror

upx: disable blanket -Werror (fix gcc-11 build)
This commit is contained in:
Ryan Burns 2021-09-23 21:39:54 -07:00 committed by GitHub
commit 77c55739cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,15 +8,19 @@ stdenv.mkDerivation rec {
sha256 = "051pk5jk8fcfg5mpgzj43z5p4cn7jy5jbyshyn78dwjqr7slsxs7"; sha256 = "051pk5jk8fcfg5mpgzj43z5p4cn7jy5jbyshyn78dwjqr7slsxs7";
}; };
CXXFLAGS = "-Wno-unused-command-line-argument";
buildInputs = [ ucl zlib perl ]; buildInputs = [ ucl zlib perl ];
preConfigure = '' preConfigure = ''
export UPX_UCLDIR=${ucl} export UPX_UCLDIR=${ucl}
''; '';
makeFlags = [ "-C" "src" "CHECK_WHITESPACE=true" ]; makeFlags = [
"-C" "src"
"CHECK_WHITESPACE=true"
# Disable blanket -Werror. Triggers failues on minor gcc-11 warnings.
"CXXFLAGS_WERROR="
];
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin