[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Packages needing rebuild for SpareMiNT???

Peter Slegg wrote:

Thanks for that. I just did a build with LDFLAGS = --stack,512000

You forgot -Wl, it is important. It asks to pass the remaining straight to the linker.

but then I noticed

     $(LD) -o $@ $(CFLAGS) $(OBJS) $(LIBS)
     stack --fix=128k $@
     flags -g -v $@

Did this override the 512000 ?

Multiple trouble...
First the $(LD) line forgets to use $(LDFLAGS).
Then the "stack" tool is used explicitly. Of course it overrides the value defined in LDFLAGS, if any.

So don't bother with LDFLAGS, don't change the Makefile...
Simply manually try some big values with "stack" tool to see if it solves your original problem.

Vincent Rivière