EXTRA = no
DEBUG = no
BUILD_DEPS =
-DEPS = attr libcap2 ncurses pam shadow util-linux-ng
+
+# Don't check deps at toolchain build
+ifneq "$(STAGE)" "toolchain"
+ DEPS = attr libcap2 ncurses pam shadow util-linux-ng
+endif
URL = http://www.gnu.org/software/coreutils/
LICENSE = GPLv3+
EXTRA = no
DEBUG = no
BUILD_DEPS =
-DEPS = ncurses pam zlib
+
+ifneq "$(STAGE)" "toolchain"
+ DEPS = ncurses pam zlib
+else
+ DEPS = ncurses zlib
+endif
CFLAGS += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64