[FFmpeg-cvslog] configure: enable PIC on s390(x)
Reinhard Tartler
git at videolan.org
Fri Mar 7 03:59:08 CET 2014
ffmpeg | branch: release/1.1 | Reinhard Tartler <siretart at tauware.de> | Sun Mar 2 02:11:05 2014 -0500| [798c715f4fa5cde37456af6202a32ee62cfb96d9] | committer: Reinhard Tartler
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 at libav.org
(cherry picked from commit 5ddc9f5052316608799b932c604f9e7561f8ce24)
(cherry picked from commit 7509c2c4ea2180733cc60ab1a0e0fe4ce2f02a69)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=798c715f4fa5cde37456af6202a32ee62cfb96d9
---
configure | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/configure b/configure
index d2b4122..d65c112 100755
--- a/configure
+++ b/configure
@@ -2818,6 +2818,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
More information about the ffmpeg-cvslog
mailing list