summaryrefslogtreecommitdiff
path: root/debian/patches/frontend_libs.patch
blob: 3a02ffb9b33cc410ea19efe0b795005ae48a808a (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
30
31
32
33
From: Markus Koschany <apo@gambaru.de>
Date: Sun, 30 Jun 2013 15:20:24 +0200
Subject: frontend_libs

Only link frontends against the libraries they need
Reduce the dependencies on frontends by linking in only the required
libraries.
---
 frontend/Makefile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: experimental/frontend/Makefile.in
===================================================================
--- experimental.orig/frontend/Makefile.in
+++ experimental/frontend/Makefile.in
@@ -238,7 +238,7 @@ LATEX = @LATEX@
 LD = @LD@
 LDFLAGS = @LDFLAGS@
 LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
+LIBS =
 LIBTOOL = @LIBTOOL@
 LIBUSB_1_0_CFLAGS = @LIBUSB_1_0_CFLAGS@
 LIBUSB_1_0_LIBS = @LIBUSB_1_0_LIBS@
@@ -363,7 +363,7 @@ scanimage_LDADD = ../backend/libsane.la
 
 saned_SOURCES = saned.c
 saned_LDADD = ../backend/libsane.la ../sanei/libsanei.la ../lib/liblib.la \
-             ../lib/libfelib.la @SYSLOG_LIBS@ @SYSTEMD_LIBS@
+             ../lib/libfelib.la @SYSLOG_LIBS@ @SYSTEMD_LIBS@ @AVAHI_LIBS@
 
 test_SOURCES = test.c
 test_LDADD = ../lib/liblib.la ../lib/libfelib.la ../backend/libsane.la