The s390 architecture requires shared libraries to be built in PIC mode.
Otherwise applications will get wrong relocations at run-time, leading
to confusing segmentation faults.

CC: [email protected]
---
 configure | 4 ++++
 1 file changed, 4 insertions(+)

I've tested this patch on the debian porter box zelenka.debian.org and
can confirm that it fixes the bug described at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=726733.


diff --git a/configure b/configure
index 2f2a0f7..79e5162 100755
--- a/configure
+++ b/configure
@@ -3222,6 +3222,10 @@ case "$arch" in
         check_64bit ppc ppc64 'sizeof(void *) > 4'
         spic=$shared
     ;;
+    s390)
+        check_64bit s390 s390x 'sizeof(void *) > 4'
+        spic=$shared
+    ;;
     sparc)
         check_64bit sparc sparc64 'sizeof(void *) > 4'
         spic=$shared
-- 
1.8.3.2

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to