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-03-23 17:05:35 +0000 |
commit | 5fa975a8120c4383f322cf41ad0b08d2a972195a (patch) | |
tree | 95d7f1933d738cce2db6d9aac47a4e7315ee5412 | |
parent | 60885e38d622ae686affafe4a11eede49996aad4 (diff) | |
download | gst-libav-5fa975a8120c4383f322cf41ad0b08d2a972195a.tar.gz |
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 eaa802a..d83b800 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) @@ -225,7 +225,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) |