Default to PIC on arm, to fix failing armhf tests (Closes: #837359).
authorMehdi Dogguy <mehdi@debian.org>
Sun, 6 Nov 2016 09:40:06 +0000 (10:40 +0100)
committerMehdi Dogguy <mehdi@debian.org>
Sun, 6 Nov 2016 10:28:03 +0000 (11:28 +0100)
debian/changelog
debian/patches/0012-arm-default-PIC.patch [new file with mode: 0644]
debian/patches/series

index cb36a3e3c291e1301c18eb2ead180c7dd9ccfdcd..a6a366002a103773549d054509c014ca8867d489 100644 (file)
@@ -1,3 +1,9 @@
+ocaml (4.02.3-8) UNRELEASED; urgency=medium
+
+  * Default to PIC on arm, to fix failing armhf tests (Closes: #837359).
+
+ -- Mehdi Dogguy <mehdi@debian.org>  Sun, 06 Nov 2016 10:36:15 +0100
+
 ocaml (4.02.3-7) unstable; urgency=medium
 
   * d/rules: split install-stamp target into -arch and -indep, to allow
diff --git a/debian/patches/0012-arm-default-PIC.patch b/debian/patches/0012-arm-default-PIC.patch
new file mode 100644 (file)
index 0000000..23277cf
--- /dev/null
@@ -0,0 +1,24 @@
+Description: Default to PIC on arm
+ Otherwise the armhf build fails now that PIE is enabled by default.
+Author: Mehdi Dogguy <mehdi@debian.org>
+Date: Sun, 6 Nov 2016 10:36:00 +0100
+Bug-Debian: https://bugs.debian.org/837359
+Forwarded: TODO
+
+---
+ asmcomp/arm/arch.ml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/asmcomp/arm/arch.ml b/asmcomp/arm/arch.ml
+index d93c1e0..3541106 100644
+--- a/asmcomp/arm/arch.ml
++++ b/asmcomp/arm/arch.ml
+@@ -56,7 +56,7 @@ let (arch, fpu, thumb) =
+     end in
+   (ref def_arch, ref def_fpu, ref def_thumb)
+-let pic_code = ref false
++let pic_code = ref true
+ let farch spec =
+   arch := (match spec with
index e375d30d37accb0d23a287abacc853a94198ecc0..552c4d78e3e4cfc852049630c42083f34b5c3f88 100644 (file)
@@ -9,3 +9,4 @@
 0010-Enable-ocamldoc-to-build-reproducible-manpages.patch
 0010-Add-a-.file-directive-to-generated-.s-files.patch
 0011-Compatibility-with-x32-architecture.patch
+0012-arm-default-PIC.patch