META MODE: Don't double stage SYMLINKS for libraries.
authorbdrewery <bdrewery@FreeBSD.org>
Fri, 13 Nov 2015 01:47:56 +0000 (01:47 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Fri, 13 Nov 2015 01:47:56 +0000 (01:47 +0000)
commit33468f235abe8c6601085122e21b61a524d4c8dc
tree6ce5eedb7f0799bdac6ae86d20b4d852b8158e6e
parentd484c089b5df6284949d1415484a475b33aadefa
META MODE: Don't double stage SYMLINKS for libraries.

meta.stage.mk is handling ${SYMLINKS:T} for stage_libs already.  The logic in
bsd.sys.mk to handle ${SYMLINKS} was brought in r247817 when it was moved out
of bsd.prog.mk and bsd.lib.mk into bsd.sys.mk.  The logic previously was
limited to bsd.prog.mk.

This fixes a race, seen easily in lib/libthr, where libpthread_p.a is created
by both stage_libs and stage_symlinks resulting in 'ln: File exists'.

Sponsored by: EMC / Isilon Storage Division
share/mk/bsd.sys.mk