mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
configure: Make -Bsymbolic check work with clang.
Update the -Bsymbolic check with the version glib has. This version works with clang. https://bugzilla.gnome.org/show_bug.cgi?id=759713
This commit is contained in:
parent
ee3a7b61ef
commit
c934fdaf3b
1 changed files with 6 additions and 5 deletions
11
configure.ac
11
configure.ac
|
@ -192,15 +192,16 @@ dnl Check for -Bsymbolic-functions linker flag used to avoid
|
||||||
dnl intra-library PLT jumps, if available.
|
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_LDFLAGS="${LDFLAGS}" SAVED_LIBS="${LIBS}"
|
||||||
AC_MSG_CHECKING([for -Bsymbolic-functions linker flag])
|
AC_MSG_CHECKING([for -Bsymbolic-functions linker flag])
|
||||||
LDFLAGS=-Wl,-Bsymbolic-functions
|
LDFLAGS=-Wl,-Bsymbolic-functions
|
||||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[int main (void) { return 0; }]])],[
|
LIBS=
|
||||||
|
AC_TRY_LINK([], [return 0],
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
enable_Bsymbolic=yes],[
|
enable_Bsymbolic=yes,
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
enable_Bsymbolic=no])
|
enable_Bsymbolic=no)
|
||||||
LDFLAGS="${SAVED_LDFLAGS}"])
|
LDFLAGS="${SAVED_LDFLAGS}" LIBS="${SAVED_LIBS}"])
|
||||||
|
|
||||||
dnl *** set variables based on configure arguments ***
|
dnl *** set variables based on configure arguments ***
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue