mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 22:28:47 -04:00
don't guess and check harder if ld supports Bsymbolic or not
This commit is contained in:
parent
87356e5bb4
commit
be48da61bf
1 changed files with 12 additions and 6 deletions
10
Makefile.PL
10
Makefile.PL
|
@ -249,13 +249,19 @@ my @CC_OPTIONS = (
|
|||
) : () ),
|
||||
);
|
||||
|
||||
# RT #70135: These flags are valid only for gcc/g++
|
||||
if ($Config{cc} =~ /^g?cc/) {
|
||||
# RT #70135: See if ld supports Bsymbolic;
|
||||
for my $path (File::Spec->path) {
|
||||
if (MM->maybe_command("$path/ld")) {
|
||||
my $output = `$path/ld --help`;
|
||||
if ($output =~ /Bsymbolic/) {
|
||||
push @CC_OPTIONS,
|
||||
CCFLAGS => $Config{ccflags} . ' -Wl,-Bsymbolic',
|
||||
LDFLAGS => $Config{ldflags} . ' -Wl,-Bsymbolic',
|
||||
LDDLFLAGS => $Config{lddlflags} . ' -Wl,-Bsymbolic';
|
||||
}
|
||||
last;
|
||||
}
|
||||
}
|
||||
|
||||
#####################################################################
|
||||
# Hand off to ExtUtils::MakeMaker
|
||||
|
|
Loading…
Add table
Reference in a new issue