The following commit has been merged in the master branch:
commit c824c49b3fbbd61626031eeb10ae37782a994154
Author: Colin Watson <[email protected]>
Date: Tue Mar 1 09:10:35 2011 +0100
dpkg-buildflags: use CFLAGS="-g -O3" for building ppc64 packages on Ubuntu
We're considering bringing up a ppc64 port of the Ubuntu server, and it
appears to be best to build it with -O3 rather than -O2. (I realise
that this would be unusual in Debian and that there are more obstacles
to this than just dpkg-buildflags, and I'd like to do this differently
eventually, but this is where we are at the moment.)
diff --git a/scripts/Dpkg/Vendor/Ubuntu.pm b/scripts/Dpkg/Vendor/Ubuntu.pm
index d9ff1b8..a07aa53 100644
--- a/scripts/Dpkg/Vendor/Ubuntu.pm
+++ b/scripts/Dpkg/Vendor/Ubuntu.pm
@@ -28,6 +28,7 @@ use Dpkg::ErrorHandling;
use Dpkg::Gettext;
use Dpkg::Control::Types;
use Dpkg::BuildOptions;
+use Dpkg::Arch qw(debarch_eq get_host_arch);
use base 'Dpkg::Vendor::Debian';
@@ -93,6 +94,11 @@ sub run_hook {
} elsif ($hook eq "update-buildflags") {
my $flags = shift @params;
+ if (debarch_eq(get_host_arch(), 'ppc64')) {
+ for my $flag (qw(CFLAGS CXXFLAGS FFLAGS)) {
+ $flags->set($flag, '-g -O3', 'vendor');
+ }
+ }
# Per https://wiki.ubuntu.com/DistCompilerFlags
$flags->set('LDFLAGS', '-Wl,-Bsymbolic-functions', 'vendor');
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]