The following commit has been merged in the master branch:
commit af650f7d42008e2f110d1a237c9a04c6dc1cfff9
Author: Raphaël Hertzog <[email protected]>
Date: Sun Apr 11 21:14:00 2010 +0200
Dpkg::BuildFlags: for Ubuntu set LDFLAGS to -Wl,-Bsymbolic-functions
This is according to https://wiki.ubuntu.com/DistCompilerFlags and
the current patch that they are carrying anyway.
diff --git a/debian/changelog b/debian/changelog
index 0e0d0e9..3c14cc8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,6 +25,7 @@ dpkg (1.15.6.2) UNRELEASED; urgency=low
the right compilation flags to the build process. dpkg-builpackage still
exports them to not break packages currently relying on them but packages
should now start using dpkg-buildflags instead. Closes: #560070
+ * For Ubuntu set default value of LDFLAGS to -Wl,-Bsymbolic-functions.
[ Updated dpkg translations ]
* German (Sven Joachim).
diff --git a/scripts/Dpkg/Vendor/Default.pm b/scripts/Dpkg/Vendor/Default.pm
index cb0d28b..1195d70 100644
--- a/scripts/Dpkg/Vendor/Default.pm
+++ b/scripts/Dpkg/Vendor/Default.pm
@@ -115,6 +115,8 @@ sub run_hook {
my $fields = shift @params;
} elsif ($hook eq "extend-patch-header") {
my ($textref, $ch_info) = @params;
+ } elsif ($hook eq "update-buildflags") {
+ my ($flags, $origin) = @params;
}
# Default return value for unknown/unimplemented hooks
diff --git a/scripts/Dpkg/Vendor/Ubuntu.pm b/scripts/Dpkg/Vendor/Ubuntu.pm
index 616c428..db58493 100644
--- a/scripts/Dpkg/Vendor/Ubuntu.pm
+++ b/scripts/Dpkg/Vendor/Ubuntu.pm
@@ -90,6 +90,12 @@ sub run_hook {
$fields->{"Launchpad-Bugs-Fixed"} = join(" ", @$bugs);
}
+ } elsif ($hook eq "update-buildflags") {
+ my $flags = shift @params;
+ my $origin = shift @params;
+ # Per https://wiki.ubuntu.com/DistCompilerFlags
+ $flags->{'LDFLAGS'} = '-Wl,-Bsymbolic-functions';
+
} else {
return $self->SUPER::run_hook($hook, @params);
}
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]