debian/rules (DEB_CONFIGURE_EXTRA_FLAGS): Limit C++ optimization level to -O
authorAaron M. Ucko <ucko@debian.org>
Thu, 9 Jun 2011 01:16:56 +0000 (01:16 +0000)
committerAaron M. Ucko <ucko@debian.org>
Thu, 9 Jun 2011 01:16:56 +0000 (01:16 +0000)
(rather than the default -O2) on mips(el), on which g++ otherwise crashes. :-/
[Also for #629656, which should be safe to close now with any luck.]

debian/changelog
debian/rules

index 1b982c81da8e6064ccf1187b7e3bc743b8c07f0b..0193920c6d79817326772cbe4b9e57b70882cce5 100644 (file)
@@ -2,18 +2,20 @@ ncbi-blast+ (2.2.25-2) UNRELEASED; urgency=low
 
   * Team upload.
   * NOT RELEASED YET
-  * Fix several sources of build failures (per #629656):
+  * Fix several sources of build failures (closes: #629656):
     - debian/rules (override_dh_install): Correctly support building only
       architecture-dependent packages.
-      (DEB_CONFIGURE_EXTRA_FLAGS): add --without-caution to override the
+      (DEB_CONFIGURE_EXTRA_FLAGS): Add --without-caution to override the
       upstream build system's reluctance to build shared libraries on the
-      Hurd or kFreeBSD, which it doesn't specifically recognize.
+      Hurd or kFreeBSD, which it doesn't specifically recognize.  Limit C++
+      optimization level to -O (rather than the default -O2) on mips(el),
+      on which g++ otherwise crashes. :-/
     - debian/patches/support_other_cpus (new; committed upstream too):
       build correctly on architectures that wound up defining
       NCBI_SLOW_ATOMIC_SWAP (spuriously in the case of powerpc,
       whose detection the patch fixes as well).
 
- -- Aaron M. Ucko <ucko@debian.org>  Wed, 08 Jun 2011 21:08:44 -0400
+ -- Aaron M. Ucko <ucko@debian.org>  Wed, 08 Jun 2011 21:16:49 -0400
 
 ncbi-blast+ (2.2.25-1) unstable; urgency=low
 
index 397859c7a91f5147bddc2a0ee28f3b89c0c1e166..a3202ebb8937247a22868ea6d2d64600f79578b3 100755 (executable)
@@ -17,6 +17,11 @@ else
 DEB_CONFIGURE_EXTRA_FLAGS += --with-optimization
 endif
 
+DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
+ifeq (,$(findstring mips,$(DEB_HOST_ARCH)))
+DEB_CONFIGURE_EXTRA_FLAGS += CXXFLAGS=-O FAST_CXXFLAGS=-O
+endif
+
 llp=LD_LIBRARY_PATH
 override_dh_auto_configure:
        cd c++  &&  $(llp)=$(CURDIR)/c++/BUILD/lib$${$(llp)+:$$$(llp)} \