diff options
Diffstat (limited to 'sci-mathematics/coq/files/coq-8.1_p3-cmxa-install.dpatch')
-rw-r--r-- | sci-mathematics/coq/files/coq-8.1_p3-cmxa-install.dpatch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sci-mathematics/coq/files/coq-8.1_p3-cmxa-install.dpatch b/sci-mathematics/coq/files/coq-8.1_p3-cmxa-install.dpatch new file mode 100644 index 000000000000..7e8d2ffbb92e --- /dev/null +++ b/sci-mathematics/coq/files/coq-8.1_p3-cmxa-install.dpatch @@ -0,0 +1,23 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## cmxa-install.dpatch by Samuel Mimram <smimram@debian.org> +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: .cmxa are not generated on non-native archs, so don't install them. + +@DPATCH@ +diff -urNad coq-8.1+dfsg~/Makefile coq-8.1+dfsg/Makefile +--- coq-8.1+dfsg~/Makefile 2007-02-18 13:25:29.000000000 +0100 ++++ coq-8.1+dfsg/Makefile 2007-02-18 13:27:28.000000000 +0100 +@@ -1272,7 +1272,11 @@ + parsing/parsing.cma tactics/tactics.cma toplevel/toplevel.cma \ + parsing/highparsing.cma tactics/hightactics.cma contrib/contrib.cma + +-OBJECTCMXA=$(OBJECTCMA:.cma=.cmxa) ++ifeq ($(BEST),opt) ++ OBJECTCMXA=$(OBJECTCMA:.cma=.cmxa) ++else ++ OBJECTCMXA= ++endif + + install-library: + $(MKDIR) $(FULLCOQLIB) |