summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/defaults/CC/stage-0.TARGETS10
-rwxr-xr-xetc/scripts/bootstrap-busybox/bootstrap.sh2
2 files changed, 11 insertions, 1 deletions
diff --git a/etc/defaults/CC/stage-0.TARGETS b/etc/defaults/CC/stage-0.TARGETS
index f58d2bf..0877ffd 100644
--- a/etc/defaults/CC/stage-0.TARGETS
+++ b/etc/defaults/CC/stage-0.TARGETS
@@ -12,6 +12,16 @@
, "default": "cc"
}
]
+ , "CFLAGS":
+ { "type": "lookup"
+ , "map":
+ { "type": "var"
+ , "name": "TOOLCHAIN_CONFIG"
+ , "default": {"type": "empty_map"}
+ }
+ , "key": "BOOTSTRAP_CFLAGS"
+ , "default": ["-w"]
+ }
, "PATH":
{ "type": "lookup"
, "map":
diff --git a/etc/scripts/bootstrap-busybox/bootstrap.sh b/etc/scripts/bootstrap-busybox/bootstrap.sh
index cb9b2fb..a49d53c 100755
--- a/etc/scripts/bootstrap-busybox/bootstrap.sh
+++ b/etc/scripts/bootstrap-busybox/bootstrap.sh
@@ -7,7 +7,7 @@ APPLET_GROUP=$2
APPLET_NAME=$3
export CC=${CC:-cc}
-export CFLAGS="-D_GNU_SOURCE -Iinclude -I${SRCDIR} -I${SRCDIR}/include"
+export CFLAGS="${CFLAGS:-} -D_GNU_SOURCE -Iinclude -I${SRCDIR} -I${SRCDIR}/include"
DEP_SRCS="
libbb/bb_pwd.c