# 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/ -Wno-nonnull" LDOPTIMIZE="-Wl,--gc-sections -pie"
+make -j 4 CC+="gcc $RPM_OPT_FLAGS" CFLAGS="$CFLAGS -fPIE -I/usr/include/dlog/ -Wno-nonnull -Wno-incompatible-pointer-types" 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/ -Wno-nonnull" LDOPTIMIZE="-Wl,--gc-sections -pie"
+make -j 4 CC+="gcc $RPM_OPT_FLAGS" CFLAGS="$CFLAGS -fPIE -I/usr/include/dlog/ -Wno-nonnull -Wno-incompatible-pointer-types" LDOPTIMIZE="-Wl,--gc-sections -pie"
cp toybox toybox-dynamic-full
%install