This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
As part of their switch to a multi-arch library layout,
authorAndy Dougherty <doughera@lafayette.edu>
Sun, 17 Apr 2011 08:19:57 +0000 (18:19 +1000)
committerJesse Vincent <jesse@bestpractical.com>
Sun, 17 Apr 2011 08:22:18 +0000 (18:22 +1000)
commit40f026236b9959b7ad3260fedc6c66cd30bb7abc
tree73e460fe3086470199a17347fd37531ab7b1ca19
parent6368643f69732288ff1d372b5d0fd3958f332e9c
As part of their switch to a multi-arch library layout,
Ubuntu 11.04 (and later, presumably) doesn't keep most libraries
(such as -lm) in /lib or /usr/lib.  So we have to ask gcc to tell us
where to look.  We don't want gcc's own libraries, however, so we
filter those out.

This could be conditional on Ubuntu, but other distributions have
announced their intent follow suit, and this scheme seems to work even
on rather old gcc's.  This unconditionally uses gcc because even if the
user is using another compiler, we still need to find the math library
and friends, and I don't know how other compilers will cope with that
situation.  Still, as an escape hatch, allow Configure command line
overrides to plibpth to bypass this check.
hints/linux.sh