mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 22:28:47 -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:
parent
acaf403a5b
commit
2f71f046e4
1 changed files with 2 additions and 1 deletions
|
@ -253,7 +253,8 @@ my @CC_OPTIONS = (
|
||||||
unless ($^O eq 'MSWin32' && $Config{ld} =~ /link/) {
|
unless ($^O eq 'MSWin32' && $Config{ld} =~ /link/) {
|
||||||
for my $path (File::Spec->path) {
|
for my $path (File::Spec->path) {
|
||||||
if (MM->maybe_command("$path/ld")) {
|
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/) {
|
if ($output =~ /Bsymbolic/) {
|
||||||
push @CC_OPTIONS,
|
push @CC_OPTIONS,
|
||||||
CCFLAGS => $Config{ccflags} . ' -Wl,-Bsymbolic',
|
CCFLAGS => $Config{ccflags} . ' -Wl,-Bsymbolic',
|
||||||
|
|
Loading…
Add table
Reference in a new issue