1 |
tetromino 13/07/28 17:30:49 |
2 |
|
3 |
Added: anjuta-3.8.4-librt.patch |
4 |
Log: |
5 |
Fix underlinking failure with gold (bug #468620, thanks to Justin Lecher). |
6 |
|
7 |
(Portage version: 2.2.0_alpha190/cvs/Linux x86_64, signed Manifest commit with key CF0ADD61) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-util/anjuta/files/anjuta-3.8.4-librt.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/anjuta/files/anjuta-3.8.4-librt.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/anjuta/files/anjuta-3.8.4-librt.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: anjuta-3.8.4-librt.patch |
16 |
=================================================================== |
17 |
From cefee2f5dff25d56f55c195291fae15cf2254c3f Mon Sep 17 00:00:00 2001 |
18 |
From: Alexandre Rostovtsev <tetromino@g.o> |
19 |
Date: Sun, 28 Jul 2013 12:48:52 -0400 |
20 |
Subject: [PATCH] symbol-db: link with librt on Linux |
21 |
|
22 |
Fixes underlinking failure when using GNU gold |
23 |
|
24 |
https://bugzilla.gnome.org/show_bug.cgi?id=704985 |
25 |
--- |
26 |
configure.ac | 6 ++++++ |
27 |
plugins/symbol-db/Makefile.am | 3 ++- |
28 |
2 files changed, 8 insertions(+), 1 deletion(-) |
29 |
|
30 |
diff --git a/configure.ac b/configure.ac |
31 |
index ba17c93..e68f99d 100644 |
32 |
--- a/configure.ac |
33 |
+++ b/configure.ac |
34 |
@@ -758,6 +758,12 @@ fi |
35 |
|
36 |
AC_SUBST(SYMBOL_DB_SHM) |
37 |
|
38 |
+dnl On Linux, need librt for shm_open/shm_unlink |
39 |
+bck_LIBS="$LIBS" |
40 |
+AC_SEARCH_LIBS(shm_open, rt, [SHM_LIBS="$LIBS"], [AC_MSG_ERROR([Failed to find library with shm_open()])]) |
41 |
+AC_SUBST(SHM_LIBS) |
42 |
+LIBS="$bck_LIBS" |
43 |
+ |
44 |
dnl Test using autotest |
45 |
dnl ----------------------------- |
46 |
AC_CONFIG_TESTDIR(plugins/am-project/tests) |
47 |
diff --git a/plugins/symbol-db/Makefile.am b/plugins/symbol-db/Makefile.am |
48 |
index 4be13c6..baff48d 100644 |
49 |
--- a/plugins/symbol-db/Makefile.am |
50 |
+++ b/plugins/symbol-db/Makefile.am |
51 |
@@ -84,7 +84,8 @@ libanjuta_symbol_db_la_LDFLAGS = $(ANJUTA_PLUGIN_LDFLAGS) |
52 |
# Plugin dependencies |
53 |
libanjuta_symbol_db_la_LIBADD = \ |
54 |
$(GDA_LIBS) \ |
55 |
- $(LIBANJUTA_LIBS) |
56 |
+ $(LIBANJUTA_LIBS) \ |
57 |
+ $(SHM_LIBS) |
58 |
|
59 |
BUILT_SOURCES=symbol-db-marshal.c symbol-db-marshal.h |
60 |
|
61 |
-- |
62 |
1.8.3.2 |