[gmp-ecm] 33/77: Use gcc-4.3 on sparc, disable assert.
Jerome Benoit
calculus-guest at moszumanska.debian.org
Sat Jun 6 12:33:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
calculus-guest pushed a commit to branch master
in repository gmp-ecm.
commit 5ac0046c1ee7db39bd9b64cc4166e4d071da975d
Author: Laurent Fousse <laurent at komite.net>
Date: Wed Sep 1 11:23:33 2010 +0200
Use gcc-4.3 on sparc, disable assert.
---
debian/control | 2 +-
debian/rules | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 17be3c6..c4cf2dd 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: math
Priority: optional
Homepage: http://ecm.gforge.inria.fr/
Maintainer: Laurent Fousse <laurent at komite.net>
-Build-Depends: debhelper (>= 7.0.0) , libgmp3-dev, m4 [amd64 kfreebsd-amd64]
+Build-Depends: debhelper (>= 7.0.0) , libgmp3-dev, m4 [amd64 kfreebsd-amd64], gcc-4.3 [sparc]
Standards-Version: 3.9.1
Package: gmp-ecm
diff --git a/debian/rules b/debian/rules
index 688c577..11d0c37 100755
--- a/debian/rules
+++ b/debian/rules
@@ -28,6 +28,11 @@ DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
CFLAGS = -Wall -g
+MYCC=""
+
+ifneq (,$(findstring sparc,$(DEB_BUILD_GNU_TYPE)))
+ MYCC="CC=gcc-4.3"
+endif
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
@@ -38,7 +43,7 @@ endif
config.status: configure
dh_testdir
# Add here commands to configure the package.
- CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-shared
+ CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-shared --disable-assert $(MYCC)
build: build-stamp
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/gmp-ecm.git
More information about the debian-science-commits
mailing list