summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2024-02-14 14:12:31 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2024-02-14 14:14:15 +0900
commita577fe538a26800dcfc52c634f41e4daa105a29a (patch)
treedf83f253dce725bdd6580789cd94ea342d108c94
parent7e16435ee21b4ae23011bdf0e88e361b437c73d4 (diff)
downloadtoybox-a577fe538a26800dcfc52c634f41e4daa105a29a.tar.gz
toybox-a577fe538a26800dcfc52c634f41e4daa105a29a.tar.bz2
toybox-a577fe538a26800dcfc52c634f41e4daa105a29a.zip
There was a build issue due to a false alarm in gcc13, so the option is disabled. Change-Id: I9cf137f365ce77b7c45e06b1e058188ed79fab2e Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
-rw-r--r--packaging/toybox.spec4
1 files changed, 2 insertions, 2 deletions
diff --git a/packaging/toybox.spec b/packaging/toybox.spec
index ec015f9..f51a7c8 100644
--- a/packaging/toybox.spec
+++ b/packaging/toybox.spec
@@ -88,13 +88,13 @@ cp %{SOURCE1001} .
# create a minimum dynamic toybox (ELF) that consists of 'nslookup', 'ping', and 'dhcpd'.
cp %{SOURCE1} .config
export LDFLAGS=" -ldlog"
-make -j 4 CC+="gcc $RPM_OPT_FLAGS" CFLAGS="$CFLAGS -fPIE -I/usr/include/dlog/" LDOPTIMIZE="-Wl,--gc-sections -pie"
+make -j 4 CC+="gcc $RPM_OPT_FLAGS" CFLAGS="$CFLAGS -fPIE -I/usr/include/dlog/ -Wno-nonnull" LDOPTIMIZE="-Wl,--gc-sections -pie"
cp toybox toybox-dynamic
# create a dynamic toybox-full (ELF) that include most of the applets including 'init'.
cp %{SOURCE11} .config
export LDFLAGS=" -ldlog"
-make -j 4 CC+="gcc $RPM_OPT_FLAGS" CFLAGS="$CFLAGS -fPIE -I/usr/include/dlog/" LDOPTIMIZE="-Wl,--gc-sections -pie"
+make -j 4 CC+="gcc $RPM_OPT_FLAGS" CFLAGS="$CFLAGS -fPIE -I/usr/include/dlog/ -Wno-nonnull" LDOPTIMIZE="-Wl,--gc-sections -pie"
cp toybox toybox-dynamic-full
%install