summaryrefslogtreecommitdiff
path: root/office/gbgoffice/patches/11_explicit-linkage.patch
diff options
context:
space:
mode:
Diffstat (limited to 'office/gbgoffice/patches/11_explicit-linkage.patch')
-rw-r--r--office/gbgoffice/patches/11_explicit-linkage.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/office/gbgoffice/patches/11_explicit-linkage.patch b/office/gbgoffice/patches/11_explicit-linkage.patch
new file mode 100644
index 0000000000..5b855a1a8c
--- /dev/null
+++ b/office/gbgoffice/patches/11_explicit-linkage.patch
@@ -0,0 +1,29 @@
+# Description: explicitly link against libX11
+# The binary uses its symbols and not linking explicitly causes
+# a failure to build with GNU binutils gold
+# Author: Bhavani Shankar R <bhavi@ubuntu.com>
+# Bug-Debian: http://bugs.debian.org/554373
+# Forwarded: no
+
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -33,7 +33,7 @@ noinst_HEADERS = \
+ dictgui.h \
+ language_tools.h
+
+-gbgoffice_LDADD = @LIBS@ @GTKMM_LIBS@
++gbgoffice_LDADD = @LIBS@ @GTKMM_LIBS@ -lX11
+
+ AM_CXXFLAGS = @GTKMM_CFLAGS@
+ AM_CPPFLAGS = -DDATA_DIR_CONFIG=\"$(datadir)/bgoffice/\" @CPPFLAGS@
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -186,7 +186,7 @@ noinst_HEADERS = \
+ dictgui.h \
+ language_tools.h
+
+-gbgoffice_LDADD = @LIBS@ @GTKMM_LIBS@
++gbgoffice_LDADD = @LIBS@ @GTKMM_LIBS@ -lX11
+ AM_CXXFLAGS = @GTKMM_CFLAGS@
+ AM_CPPFLAGS = -DDATA_DIR_CONFIG=\"$(datadir)/bgoffice/\" @CPPFLAGS@
+ all: config.h