This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Introduce sysroot variable to Configure
authorJess Robinson <castaway@desert-island.me.uk>
Fri, 19 Oct 2012 18:05:25 +0000 (19:05 +0100)
committerBrian Fraser <fraserbn@gmail.com>
Tue, 14 Jan 2014 02:52:00 +0000 (23:52 -0300)
commit98b12e44bdf730698c03a5a4d8fc93c41d931637
tree7e5e2a069858b7c47d8dbda449ab9affa999353d
parentc6fe3211fa33aa68aae52c93ae02166eb9df3057
Introduce sysroot variable to Configure

This is borrowed from gcc and allows us to indicate the logical root
directory for headers and libraries, under which all -I and -L are
searched for. This patch adjusts Configure to search under $sysroot
(if supplied) for headers and libraries, instead of /.

--sysroot is added to ccflags and friends so that make in
ExtUtils::MakeMaker, and other extensions, will use it.

Currently this is only done if compiling with some variant of gcc
or g++.
Configure
ext/Errno/Errno_pm.PL