Tell debhelper to ignore ocaml-native-compilers on byte-only architectures
authorStephane Glondu <steph@glondu.net>
Fri, 20 Feb 2009 08:00:20 +0000 (09:00 +0100)
committerStephane Glondu <steph@glondu.net>
Fri, 20 Feb 2009 08:39:44 +0000 (09:39 +0100)
debian/rules

index 0bbd8a9331607df80f432368082b5884e8f72c64..1c131b2e57a18c22fd8ac6aed48ec7199e1a609b 100755 (executable)
@@ -27,6 +27,11 @@ SRCTARBALL = $(PACKAGE)-source-$(OCAML_ABI).tar.bz2
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+export DH_OPTIONS
+ifeq ($(OCAML_OPT_ARCH),)
+  DH_OPTIONS += -Nocaml-native-compilers
+endif
+
 # This has to be exported to make gen_modules work
 export OCAML_OPT_ARCH
 export OCAML_STDLIB_DIR