mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
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
This commit is contained in:
parent
7a951369c7
commit
27d8c8c456
1 changed files with 3 additions and 3 deletions
|
@ -139,8 +139,8 @@ dnl intra-library PLT jumps, if available.
|
||||||
AC_ARG_ENABLE(Bsymbolic,
|
AC_ARG_ENABLE(Bsymbolic,
|
||||||
[AS_HELP_STRING([--disable-Bsymbolic],[avoid linking with -Bsymbolic])],,
|
[AS_HELP_STRING([--disable-Bsymbolic],[avoid linking with -Bsymbolic])],,
|
||||||
[SAVED_LDFLAGS="${LDFLAGS}" SAVED_LIBS="${LIBS}"
|
[SAVED_LDFLAGS="${LDFLAGS}" SAVED_LIBS="${LIBS}"
|
||||||
AC_MSG_CHECKING([for -Bsymbolic-functions linker flag])
|
AC_MSG_CHECKING([for -Bsymbolic linker flag])
|
||||||
LDFLAGS=-Wl,-Bsymbolic-functions
|
LDFLAGS=-Wl,-Bsymbolic
|
||||||
LIBS=
|
LIBS=
|
||||||
AC_TRY_LINK([], [return 0],
|
AC_TRY_LINK([], [return 0],
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
|
@ -207,7 +207,7 @@ AC_SUBST(GST_LIBS)
|
||||||
|
|
||||||
GST_ALL_LDFLAGS="-no-undefined"
|
GST_ALL_LDFLAGS="-no-undefined"
|
||||||
if test "x${enable_Bsymbolic}" = "xyes"; then
|
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
|
fi
|
||||||
AC_SUBST(GST_ALL_LDFLAGS)
|
AC_SUBST(GST_ALL_LDFLAGS)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue