-mdynamic-no-pic is required for it, but it was only
added to CFLAGS and the check only used ASFLAGS.
Originally committed as revision 19614 to svn://svn.ffmpeg.org/ffmpeg/trunk
... | ... |
@@ -1871,7 +1871,8 @@ case $target_os in |
1871 | 1871 |
FFSERVERLDFLAGS=-Wl,-bind_at_load |
1872 | 1872 |
objformat="macho" |
1873 | 1873 |
enabled x86_64 && objformat="macho64" |
1874 |
- enabled shared || check_cflags -mdynamic-no-pic |
|
1874 |
+ enabled shared || |
|
1875 |
+ { check_cflags -mdynamic-no-pic && add_asflags -mdynamic-no-pic; } |
|
1875 | 1876 |
;; |
1876 | 1877 |
mingw32*) |
1877 | 1878 |
if test $target_os = "mingw32ce"; then |