sdcc: honour dontStrip

even with 'dontStrip', the sdcc binary was stipped anyway.
specifying STRIP=none will convince ./configure to use 'none'
as the strip tool, which 'make install' conveniently ignores.
This commit is contained in:
Arnout Engelen 2021-08-09 22:10:14 +02:00
parent 0dde103318
commit 12e3001dad
No known key found for this signature in database
GPG Key ID: 061107B0F74A6DAA
1 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,12 @@ stdenv.mkDerivation rec {
configureFlags = map (f: "--disable-${f}-port") excludedPorts;
preConfigure = ''
if test -n "''${dontStrip-}"; then
export STRIP=none
fi
'';
meta = {
description = "Small Device C Compiler";
longDescription = ''