diff options
-rw-r--r-- | packaging/toybox.spec | 4 | ||||
-rwxr-xr-x | scripts/mkflags.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/packaging/toybox.spec b/packaging/toybox.spec index f51a7c8..6db102d 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/ -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 diff --git a/scripts/mkflags.c b/scripts/mkflags.c index d87087b..03f4b2e 100755 --- a/scripts/mkflags.c +++ b/scripts/mkflags.c @@ -10,6 +10,8 @@ #include <stdlib.h> #include <string.h> #include <errno.h> +#include <ctype.h> +#include <unistd.h> struct flag { struct flag *next; |