busybox: enable debug info

This commit is contained in:
Alyssa Ross 2022-01-24 00:37:25 +00:00
parent 481b2c6a24
commit 9b3045bd2a

View File

@ -66,6 +66,8 @@ stdenv.mkDerivation rec {
./busybox-in-store.patch
] ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) ./clang-cross.patch;
separateDebugInfo = true;
postPatch = "patchShebangs .";
configurePhase = ''
@ -120,6 +122,8 @@ stdenv.mkDerivation rec {
makeFlagsArray+=("CC=${stdenv.cc.targetPrefix}cc -isystem ${musl.dev}/include -B${musl}/lib -L${musl}/lib")
'';
makeFlags = [ "SKIP_STRIP=y" ];
postInstall = ''
sed -e '
1 a busybox() { '$out'/bin/busybox "$@"; }\