trylink: only prefix libs with -l
authorMike Frysinger <vapier@gentoo.org>
Thu, 12 Sep 2013 04:29:40 +0000 (00:29 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Sep 2013 22:40:07 +0000 (18:40 -0400)
commit3eab2b7675fc7e2889cd69285a2a31980a4bf504
tree2813623a17310159f747aba2ddfd49005d960295
parent054f3eb7848230702b149a7e17f05314cb0157cb
trylink: only prefix libs with -l

If our pkg-config queries pass back a flag like -pthread, the trylink
script will expand that to -l-pthread.  So change trylink to only add
the -l prefix to a value that doesn't have a - prefix already.

Reported-by: thaehaid@incognitomail.org
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
scripts/trylink