> -----Original Message----- > From: owner-po...@openbsd.org <owner-po...@openbsd.org> On Behalf Of Stuart > Henderson > Sent: 14 February 2019 10:12 > To: cdr....@gmail.com > Cc: 'Jeremie Courreges-Anglas' <j...@wxcvbn.org>; 'Ian McWilliam' > <i.mcwill...@westernsydney.edu.au>; ports@openbsd.org > Subject: Re: [ld.so] Re: smbd slow to start on -current > > On 2019/02/14 10:08, cdr....@gmail.com wrote: > > I'm thinking that samba isn't the issue here (apart from its need > > for a gazillion libraries). I can reproduce the problem with a > > simple program that needlessly links in all the samba required libs. > > Although, perhaps the use of --as-needed is not correct. > > as-needed *is* helping though - try it without -Wl,--as-needed and > your time will probably double.
Stuart, You are quite right: [mark@chrome:~/tmp]$ time ./t Done. 2m01.22s real 2m00.77s user 0m00.06s system Thanks for pointing that out. -mark