commit c341aa8

chld  ·  2026-08-29 19:58:07 +0000 UTC
parent 63ca933
toybox: static linking; toybox: update POSIX.patch
2 files changed,  +10, -10
+7, -7
 1@@ -21,8 +21,8 @@ index 0b6501fc..23dd687d 100755
 2    make defconfig
 3 diff --git a/scripts/bloatcheck b/scripts/bloatcheck
 4 index fff4690f..30492c64 100755
 5---- a/scripts/bloatcheck
 6-+++ b/scripts/bloatcheck
 7+--- a/scripts/probes/bloatcheck
 8++++ b/scripts/probes/bloatcheck
 9 @@ -1,4 +1,4 @@
10 -#!/bin/bash
11 +#!/bin/sh
12@@ -61,8 +61,8 @@ index 99dcfde9..b1fa62a0 100755
13  echo
14 diff --git a/scripts/findglobals.sh b/scripts/findglobals.sh
15 index 2c63164b..9455bc61 100755
16---- a/scripts/findglobals.sh
17-+++ b/scripts/findglobals.sh
18+--- a/scripts/probes/findglobals
19++++ b/scripts/probes/findglobals
20 @@ -1,4 +1,4 @@
21 -#!/bin/bash
22 +#!/bin/sh
23@@ -463,10 +463,10 @@ index 618022c7..63dee932 100644
24  
25  if [ -z "$(command -v "${CROSS_COMPILE}${CC}")" ]
26  then
27-diff --git a/scripts/record-commands b/scripts/record-commands
28+diff --git a/mkroot/record-commands b/mkroot/record-commands
29 index 8410966b..f49bcff9 100755
30---- a/scripts/record-commands
31-+++ b/scripts/record-commands
32+--- a/mkroot/record-commands
33++++ b/mkroot/record-commands
34 @@ -1,4 +1,4 @@
35 -#!/bin/bash
36 +#!/bin/sh
+3, -3
 1@@ -6,8 +6,8 @@ SOURCE="https://github.com/landley/toybox.git
 2 	POSIX.patch"
 3 BUILD_STYLE=gmake
 4 build(){
 5-    gmake defconfig || die "defconfig failed"
 6-    gmake PREFIX="$PKG" || die "gmake failed"
 7-    gmake DESTDIR="$PKG" install || die "install failed"
 8+    gmake CC='cc -static' CFLAGS='-static' LDFLAGS='-static' defconfig || die "defconfig failed"
 9+    gmake CC='cc -static' CFLAGS='-static' LDFLAGS='-static' PREFIX="$PKG" || die "gmake failed"
10+    gmake CC='cc -static' CFLAGS='-static' LDFLAGS='-static' DESTDIR="$PKG" install || die "install failed"
11 }
12 . ${0%/*}/../../libsh/libdmake.sh