summaryrefslogtreecommitdiffstats
path: root/office/gbgoffice/patches/11_explicit-linkage.patch
blob: 5b855a1a8c849a10045170ed4e27621ecccb75b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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