This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Configure: unbreak -S option now that -O is the default
authorAaron Crane <arc@cpan.org>
Wed, 2 Dec 2015 00:06:42 +0000 (00:06 +0000)
committerAaron Crane <arc@cpan.org>
Wed, 2 Dec 2015 11:12:55 +0000 (11:12 +0000)
commit7a4fcb3f64df51eacf89f69a4bf76386aea1e8e3
tree88aaaba6282bebf9a40f894554f80a6dcfcc4144
parent7175d769b8a61b190222d193511702b1a312a325
Configure: unbreak -S option now that -O is the default

As far as I can tell, using the -S and -O options together has always
yielded an error of this form:

    Configure: 2042: .: Can't open ./optdef.sh

That's because, even though optdef.sh is created in the UU directory, and
most of Configure is run in that directory, part of the -S implementation is
run in the root directory, and was therefore trying to read ./optdef.sh
instead of ./UU/optdef.sh.

As of 41d73075f0801c26794dadb1ff690f305d7e53a7, the -O mode is always
enabled, so the -S option has been broken since then. This fixes that.
Configure