Some linkers fail if this flag is used when creating an executable file.
Since the flag is meaningful only for shared libraries, dropping it from
the main link flags is correct.
... | ... |
@@ -2899,7 +2899,7 @@ enabled extra_warnings && check_cflags -Winline |
2899 | 2899 |
check_ldflags -Wl,--warn-common |
2900 | 2900 |
check_ldflags -Wl,--as-needed |
2901 | 2901 |
check_ldflags '-Wl,-rpath-link,\$(BUILD_ROOT)/libpostproc -Wl,-rpath-link,\$(BUILD_ROOT)/libswscale -Wl,-rpath-link,\$(BUILD_ROOT)/libavfilter -Wl,-rpath-link,\$(BUILD_ROOT)/libavdevice -Wl,-rpath-link,\$(BUILD_ROOT)/libavformat -Wl,-rpath-link,\$(BUILD_ROOT)/libavcodec -Wl,-rpath-link,\$(BUILD_ROOT)/libavcore -Wl,-rpath-link,\$(BUILD_ROOT)/libavutil' |
2902 |
-check_ldflags -Wl,-Bsymbolic |
|
2902 |
+test_ldflags -Wl,-Bsymbolic && append SHFLAGS -Wl,-Bsymbolic |
|
2903 | 2903 |
|
2904 | 2904 |
echo "X{};" > $TMPV |
2905 | 2905 |
if test_ldflags -Wl,--version-script,$TMPV; then |