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
18
Makefile.PL
18
Makefile.PL
|
@ -249,12 +249,18 @@ my @CC_OPTIONS = (
|
||||||
) : () ),
|
) : () ),
|
||||||
);
|
);
|
||||||
|
|
||||||
# RT #70135: These flags are valid only for gcc/g++
|
# RT #70135: See if ld supports Bsymbolic;
|
||||||
if ($Config{cc} =~ /^g?cc/) {
|
for my $path (File::Spec->path) {
|
||||||
push @CC_OPTIONS,
|
if (MM->maybe_command("$path/ld")) {
|
||||||
CCFLAGS => $Config{ccflags} . ' -Wl,-Bsymbolic',
|
my $output = `$path/ld --help`;
|
||||||
LDFLAGS => $Config{ldflags} . ' -Wl,-Bsymbolic',
|
if ($output =~ /Bsymbolic/) {
|
||||||
LDDLFLAGS => $Config{lddlflags} . ' -Wl,-Bsymbolic';
|
push @CC_OPTIONS,
|
||||||
|
CCFLAGS => $Config{ccflags} . ' -Wl,-Bsymbolic',
|
||||||
|
LDFLAGS => $Config{ldflags} . ' -Wl,-Bsymbolic',
|
||||||
|
LDDLFLAGS => $Config{lddlflags} . ' -Wl,-Bsymbolic';
|
||||||
|
}
|
||||||
|
last;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
Loading…
Add table
Reference in a new issue