[glib] Add check for -Bsymbolic-functions linker flag
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Add check for -Bsymbolic-functions linker flag
- Date: Mon, 21 Jun 2010 17:25:43 +0000 (UTC)
commit d5dc656d35887780008c95c5ed496f628948813c
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Jun 21 13:25:44 2010 -0400
Add check for -Bsymbolic-functions linker flag
configure.in | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index 29754c5..739c01f 100644
--- a/configure.in
+++ b/configure.in
@@ -3634,6 +3634,21 @@ AC_SUBST(DBUS1_CFLAGS)
AC_SUBST(DBUS1_LIBS)
AM_CONDITIONAL(HAVE_DBUS1, [test "x$have_dbus1" = "xyes"])
+dnl
+dnl Check for -Bsymbolic-functions linker flag used to avoid
+dnl intra-library PLT jumps, if available.
+dnl
+SAVED_LDFLAGS="${LDFLAGS}"
+AC_MSG_CHECKING([for -Bsymbolic-functions linker flag])
+LDFLAGS=-Wl,-Bsymbolic-functions
+AC_TRY_LINK([], [int main (void) { return 0; }],
+ GLIB_LINK_FLAGS=-Bsymbolic-functions
+ AC_MSG_RESULT(yes),
+ GLIB_LINK_FLAGS=
+ AC_MSG_RESULT(no))
+AC_SUBST(GLIB_LINK_FLAGS)
+LDFLAGS="${SAVED_LDFLAGS}"
+
AC_CONFIG_FILES([
glib-2.0.pc
glib-2.0-uninstalled.pc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]