Avoid build error from nonnull gcc13 option 43/305943/1 accepted/tizen/unified/20240215.130033 accepted/tizen/unified/toolchain/20240311.070105 accepted/tizen/unified/x/20240219.013829
authorJaehyun Kim <jeik01.kim@samsung.com>
Wed, 14 Feb 2024 05:12:31 +0000 (14:12 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Wed, 14 Feb 2024 05:14:15 +0000 (14:14 +0900)
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>
packaging/toybox.spec

index ec015f9..f51a7c8 100644 (file)
@@ -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