- fix bug where we linked again -lm even though it is not needed.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 2 Sep 2007 14:51:54 +0000 (14:51 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 2 Sep 2007 14:51:54 +0000 (14:51 -0000)
commit8d91c13df5ecd4e2e2f7e4bea6bf5bec9495e1ca
treed170d2548e805037f3c1b31317f8f7c4b67fe114
parent7bc5360bba5ae057771200e2d5ae55c45f178c0d
- fix bug where we linked again -lm even though it is not needed.
  For BBOX_LIB_LIST="crypt m" trylink ... with just applet true, we pulled in
  libm because in this case we tried to use invalid flags (plain "-l" without
  a lib) which of course failed, thus the script thought that -lm was needed.

  The fix is not to pass "-l" without a lib if we are about to check if any
  or the last remaining lib is really needed.
scripts/trylink