@$(PREBUILD)
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
+ # Fix extracting sparse files to a filesystem like vfat, when ftruncate
+ # may fail to grow the size of a file
+ cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-vfatTruncate.patch
+
ifeq "$(STAGE)" "toolchain"
# Normally the 'rmt' programs goes in sbin/.
cd $(DIR_APP) && \
endif
ifeq "$(STAGE)" "base"
- cd $(DIR_APP) && CC="gcc -std=gnu99 -fgnu89-inline" \
-
- # Fix extracting sparse files to a filesystem like vfat, when ftruncate may fail to grow the size of a file
- cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/$(THISAPP)-vfatTruncate.patch
-
cd $(DIR_APP) && \
+ CC="gcc -std=gnu99 -fgnu89-inline" \
./configure \
$(CONFIGURE_ARCH) \
--prefix=/usr \