attempt to implement ulimit fix for mingw

This commit is contained in:
markwkidd 2018-05-21 18:03:40 -05:00
parent d71b75fc89
commit 602e54f380

View File

@ -474,7 +474,7 @@ $(TARGET): $(OBJECTS)
ifeq ($(STATIC_LINKING),1)
@echo Archiving $@...
ifeq ($(SPLIT_UP_LINK), 1)
$(AR) rcs $@ $(foreach OBJECTS,$(OBJECTS),$(NEWLINE) $(AR) q $@ $(OBJECTS))
ulimit -s unlimited && $(AR) rcs $@ $(foreach OBJECTS,$(OBJECTS),$(NEWLINE) $(AR) q $@ $(OBJECTS))
else
$(AR) rcs $@ $(OBJECTS)
endif
@ -484,7 +484,7 @@ else
ifeq ($(SPLIT_UP_LINK), 1)
# Use a temporary file to hold the list of objects, as it can exceed windows shell command limits
$(file >$@.in,$(OBJECTS))
$(LD) $(LDFLAGS) $(LINKOUT)$@ @$@.in $(LIBS)
ulimit -s unlimited && $(LD) $(LDFLAGS) $(LINKOUT)$@ @$@.in $(LIBS)
@rm $@.in
else
$(LD) $(LDFLAGS) $(LINKOUT)$@ $(OBJECTS) $(LIBS)