From 5ddc9f5052316608799b932c604f9e7561f8ce24 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Sun, 2 Mar 2014 02:11:05 -0500 Subject: [PATCH] configure: enable PIC on s390(x) 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: libav-stable@libav.org --- configure | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure b/configure index 1954c54487..d12427da15 100755 --- a/configure +++ b/configure @@ -3220,6 +3220,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