On 2010/04/19 17:12, Stuart Henderson wrote: > I've got it working by manually changing the build order but haven't > worked out how to fix in the Makefile yet so there will be at least > one more round of this diff.
hmm...okay, I'm a bit out of my depth of ld(1) knowledge now but sometime after 3.4.6, Samba started using -Wl,--as-needed in LDFLAGS which triggered this problem. Either removing -Wl,--as-needed or including $(TERMLDFLAGS) $(TERMLIBS) before $(LDFLAGS) works around this problem but I don't understand it well enough to know what's correct here...
