mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 22:28:47 -04:00
made MSVC happier
This commit is contained in:
parent
e01e9e3fea
commit
2c33a2e1bc
1 changed files with 11 additions and 9 deletions
20
Makefile.PL
20
Makefile.PL
|
@ -250,16 +250,18 @@ my @CC_OPTIONS = (
|
||||||
);
|
);
|
||||||
|
|
||||||
# RT #70135: See if ld supports Bsymbolic;
|
# RT #70135: See if ld supports Bsymbolic;
|
||||||
for my $path (File::Spec->path) {
|
unless ($^O eq 'MSWin32' && $Config{ld} =~ /link/) {
|
||||||
if (MM->maybe_command("$path/ld")) {
|
for my $path (File::Spec->path) {
|
||||||
my $output = `$path/ld --help`;
|
if (MM->maybe_command("$path/ld")) {
|
||||||
if ($output =~ /Bsymbolic/) {
|
my $output = `$path/ld --help`;
|
||||||
push @CC_OPTIONS,
|
if ($output =~ /Bsymbolic/) {
|
||||||
CCFLAGS => $Config{ccflags} . ' -Wl,-Bsymbolic',
|
push @CC_OPTIONS,
|
||||||
LDFLAGS => $Config{ldflags} . ' -Wl,-Bsymbolic',
|
CCFLAGS => $Config{ccflags} . ' -Wl,-Bsymbolic',
|
||||||
LDDLFLAGS => $Config{lddlflags} . ' -Wl,-Bsymbolic';
|
LDFLAGS => $Config{ldflags} . ' -Wl,-Bsymbolic',
|
||||||
|
LDDLFLAGS => $Config{lddlflags} . ' -Wl,-Bsymbolic';
|
||||||
|
}
|
||||||
|
last;
|
||||||
}
|
}
|
||||||
last;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue