diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2018-01-20 15:45:45 +0800 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2018-01-22 12:02:30 +0000 |
commit | 27d8c8c456a14f7d2d79031ad5fea110d3f695d8 (patch) | |
tree | c08d04c3fa3f06982f607ed379284a520e5e6a74 | |
parent | 7a951369c7f7b3c16c4c4555e0df9f5ee693fc38 (diff) |
configure: Replace -Bsymbolic-functions with -Bsymbolic
The documentation of libav says -Bsymbolic may be needed when building a
shared library which links statically to libav.
Fixes linking error on FreeBSD:
gst-libav/gst-libs/ext/.libs/libavcodec.a(simple_idct10.o):
relocation R_X86_64_PC32 against `ff_pw_1023' can not be used when making a
shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
https://bugzilla.gnome.org/show_bug.cgi?id=791783
-rw-r--r-- | configure.ac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 8944f99f33..ad9a7d94df 100644 --- a/configure.ac +++ b/configure.ac @@ -139,8 +139,8 @@ dnl intra-library PLT jumps, if available. AC_ARG_ENABLE(Bsymbolic, [AS_HELP_STRING([--disable-Bsymbolic],[avoid linking with -Bsymbolic])],, [SAVED_LDFLAGS="${LDFLAGS}" SAVED_LIBS="${LIBS}" - AC_MSG_CHECKING([for -Bsymbolic-functions linker flag]) - LDFLAGS=-Wl,-Bsymbolic-functions + AC_MSG_CHECKING([for -Bsymbolic linker flag]) + LDFLAGS=-Wl,-Bsymbolic LIBS= AC_TRY_LINK([], [return 0], AC_MSG_RESULT(yes) @@ -207,7 +207,7 @@ AC_SUBST(GST_LIBS) GST_ALL_LDFLAGS="-no-undefined" if test "x${enable_Bsymbolic}" = "xyes"; then - GST_ALL_LDFLAGS="$GST_ALL_LDFLAGS -Wl,-Bsymbolic-functions" + GST_ALL_LDFLAGS="$GST_ALL_LDFLAGS -Wl,-Bsymbolic" fi AC_SUBST(GST_ALL_LDFLAGS) |