* [gentoo-commits] gentoo-x86 commit in dev-libs/json-glib/files: json-glib-0.16.0-bsymbolic.patch
@ 2015-03-19 11:47 Pacho Ramos (pacho)
0 siblings, 0 replies; 2+ messages in thread
From: Pacho Ramos (pacho) @ 2015-03-19 11:47 UTC (permalink / raw
To: gentoo-commits
pacho 15/03/19 11:47:39
Removed: json-glib-0.16.0-bsymbolic.patch
Log:
Version bump, drop old
(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in dev-libs/json-glib/files: json-glib-0.16.0-bsymbolic.patch
@ 2013-07-20 11:28 Pacho Ramos (pacho)
0 siblings, 0 replies; 2+ messages in thread
From: Pacho Ramos (pacho) @ 2013-07-20 11:28 UTC (permalink / raw
To: gentoo-commits
pacho 13/07/20 11:28:41
Added: json-glib-0.16.0-bsymbolic.patch
Log:
Apply upstream patch to use bsymbolic and prevent problems like bug #475954
(Portage version: 2.1.12.13/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Revision Changes Path
1.1 dev-libs/json-glib/files/json-glib-0.16.0-bsymbolic.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/json-glib/files/json-glib-0.16.0-bsymbolic.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/json-glib/files/json-glib-0.16.0-bsymbolic.patch?rev=1.1&content-type=text/plain
Index: json-glib-0.16.0-bsymbolic.patch
===================================================================
From a9327484746820a5a2b8c1acf4a78470b004f0a0 Mon Sep 17 00:00:00 2001
From: Emmanuele Bassi <ebassi@gnome.org>
Date: Thu, 11 Jul 2013 15:49:14 +0000
Subject: build: Add configure option to enable -Bsymbolic
We should always compile with -Bsymbolic enabled to avoid intra-library
PLT jumps.
https://bugzilla.gnome.org/show_bug.cgi?id=703734
---
diff --git a/configure.ac b/configure.ac
index 7c640fa..90654c6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,6 +93,30 @@ AC_MSG_RESULT([$platform_win32])
AM_CONDITIONAL(OS_LINUX, [test "$platform_linux" = "yes"])
AM_CONDITIONAL(OS_WIN32, [test "$platform_win32" = "yes"])
+# Check for -Bsymbolic-functions to avoid intra-library PLT jumps
+AC_ARG_ENABLE([Bsymbolic],
+ [AS_HELP_STRING([--disable-Bsymbolic],
+ [Avoid linking with -Bsymbolic])],
+ [],
+ [
+ saved_LDFLAGS="${LDFLAGS}"
+ AC_MSG_CHECKING([for -Bsymbolic-functions linker flag])
+ LDFLAGS=-Wl,-Bsymbolic-functions
+ AC_TRY_LINK([], [int main (void) { return 0; }],
+ [
+ AC_MSG_RESULT([yes])
+ enable_Bsymbolic=yes
+ ],
+ [
+ AC_MSG_RESULT([no])
+ enable_Bsymbolic=no
+ ])
+ LDFLAGS="${saved_LDFLAGS}"
+ ])
+
+AS_IF([test "x$enable_Bsymbolic" = "xyes"], [JSON_LINK_FLAGS=-Wl[,]-Bsymbolic-functions])
+JSON_LT_LDFLAGS="$JSON_LT_LDFLAGS $JSON_LINK_FLAGS"
+
AC_SUBST(JSON_LT_LDFLAGS)
dnl === Dependencies ==========================================================
--
cgit v0.9.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-19 11:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-19 11:47 [gentoo-commits] gentoo-x86 commit in dev-libs/json-glib/files: json-glib-0.16.0-bsymbolic.patch Pacho Ramos (pacho)
-- strict thread matches above, loose matches on Subject: below --
2013-07-20 11:28 Pacho Ramos (pacho)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox