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

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



On Sat, 05 Feb 2011 21:01:29 , Vincent Rivière <vincent.riviere@freesbee.fr> wrote:
> Peter Slegg wrote:
> >> -Wl,--stack,256k
> >
> > 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 t
> o
> the linker.
>
> > but then I noticed
> >
> > $(TARGET): $(OBJS)
> >      $(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 valu
> e defined in LDFLAGS, if any.

I have not done much to the makefile, if it ain't broke...  I will fix
the problems now.

> 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.

The version I made with stack --fix=256k crashed but the previous version
modified with the stack tool seemed to be ok.

More tests needed.

Thanks,

Peter