1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

Tux reported 2>&1 prevented his CPAN client from installing DBD::SQLite; he said 2>/devnull was fine

This commit is contained in:
Kenichi Ishigaki 2012-05-17 01:03:24 +00:00
parent acaf403a5b
commit 2f71f046e4

View file

@ -253,7 +253,8 @@ my @CC_OPTIONS = (
unless ($^O eq 'MSWin32' && $Config{ld} =~ /link/) {
for my $path (File::Spec->path) {
if (MM->maybe_command("$path/ld")) {
my $output = `$path/ld --help 2>&1`;
my $devnull = File::Spec->devnull;
my $output = `$path/ld --help 2>$devnull`;
if ($output =~ /Bsymbolic/) {
push @CC_OPTIONS,
CCFLAGS => $Config{ccflags} . ' -Wl,-Bsymbolic',