1
0
Fork 0
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:
Kenichi Ishigaki 2011-10-16 06:05:45 +00:00
parent 87356e5bb4
commit be48da61bf

View file

@ -249,12 +249,18 @@ my @CC_OPTIONS = (
) : () ),
);
# RT #70135: These flags are valid only for gcc/g++
if ($Config{cc} =~ /^g?cc/) {
push @CC_OPTIONS,
CCFLAGS => $Config{ccflags} . ' -Wl,-Bsymbolic',
LDFLAGS => $Config{ldflags} . ' -Wl,-Bsymbolic',
LDDLFLAGS => $Config{lddlflags} . ' -Wl,-Bsymbolic';
# 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;
}
}
#####################################################################