bsd.lib.mk: Allow for possibility to override static lib target
authorJohn Marino <draco@marino.st>
Tue, 10 Feb 2015 19:24:32 +0000 (20:24 +0100)
committerJohn Marino <draco@marino.st>
Tue, 10 Feb 2015 19:24:32 +0000 (20:24 +0100)
commit90c1099282c447b18bc9db91ed0e5a32b1771252
treeaa9f1197d75e7ce929dfc64ede6ff474f3f0e7cc
parentc477a13843a60c045711765063b0b6b227fdc1c4
bsd.lib.mk: Allow for possibility to override static lib target

The upcoming fix for gcc 5.0 libstdc++.a requires a dedicated static
library target.  Up until now this hasn't been possible without bmake
screaming about duplicate targets (although it does work).  Add a simple
"if not target defined" check to bsd.lib.mk to avoid these warnings.
share/mk/bsd.lib.mk