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
(cherry picked from commit 5ddc9f5052
)
(cherry picked from commit 7509c2c4ea2180733cc60ab1a0e0fe4ce2f02a69)
This commit is contained in:
4
configure
vendored
4
configure
vendored
@@ -2818,6 +2818,10 @@ case "$arch" in
|
|||||||
check_64bit ppc ppc64 'sizeof(void *) > 4'
|
check_64bit ppc ppc64 'sizeof(void *) > 4'
|
||||||
spic=$shared
|
spic=$shared
|
||||||
;;
|
;;
|
||||||
|
s390)
|
||||||
|
check_64bit s390 s390x 'sizeof(void *) > 4'
|
||||||
|
spic=$shared
|
||||||
|
;;
|
||||||
sparc)
|
sparc)
|
||||||
check_64bit sparc sparc64 'sizeof(void *) > 4'
|
check_64bit sparc sparc64 'sizeof(void *) > 4'
|
||||||
spic=$shared
|
spic=$shared
|
||||||
|
Reference in New Issue
Block a user