On Fri, 12 May 2017 12:13:33 +0200 Marek Skalický <mskalick@xxxxxxxxxx> wrote: > Hi, > I am building mongodb and on armv7hl I got "/bin/ld: failed to set > dynamic section sizes: Memory exhausted" error. > > How to solve this? I would prefer more general solution that forcing > to -j1 and hope that I will help... > > > CCFLAGS="%{?optflags} -ggdb3 -fvisibility=hidden" ^^^ I would reduce the debuginfo level either to 2 (the default) or even to 1, we use the following trick in some c++ heavy packages %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') Dan > LINKFLAGS="%{?__global_ldflags} -Wl,-z,noexecstack > -Wl,--reduce-memory- overheads,--no-keep-memory" > > Using %{?_smp_mflags} > > Thanks, > Marek > _______________________________________________ > devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx