slackbuilds_ponce/office/gbgoffice/patches/11_explicit-linkage.patch
Petar Petrov df5b7aedb9 office/gbgoffice: Build fixes and miscellaneous cleanups
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
2012-09-11 23:53:42 -05:00

29 lines
887 B
Diff

# 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