Package: xmedcon / 0.13.0-2

avoid_linking_to_unneeded_libs.patch Patch series | download
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
Author: Andreas Tille <tille@debian.org>
LastChanged: Tue, 23 Jul 2013 08:46:18 +0200
BugClosed: http://bugs.debian.org/632163
Description: Avoid useless linking against GTK library for command line tool
 and library

--- a/source/Makefile.am
+++ b/source/Makefile.am
@@ -22,7 +22,6 @@ bin_PROGRAMS = medcon $(XMEDCON)
 
 medcon_SOURCES = medcon.c
 medcon_LDADD = libmdc.la 
-medcon_LDFLAGS = $(XMEDCON_GLIB_LIBS) $(XMEDCON_GTK_LIBS) -lm
 
 xmedcon_SOURCES = \
  xcolmap.c \
@@ -212,8 +211,8 @@ libmdc_la_SOURCES = \
 libmdc_la_LDFLAGS = $(no_undefined) -version-info $(LIBVERSION) -lm
 libmdc_la_LIBADD = $(ENABLED_FRMTS_OBJS) \
                    $(DICM_LIB) $(LJPG_LIB) \
-                   $(ZLIB_LIB) $(PNG_LIB) $(NIFTI_LIB) \
-                   $(TPC_LIB) $(XMEDCON_GLIB_LIBS) $(XMEDCON_GTK_LIBS)
+                   $(PNG_LIB) $(NIFTI_LIB) \
+                   $(TPC_LIB) $(XMEDCON_GLIB_LIBS)
 libmdc_la_DEPENDENCIES = $(ENABLED_FRMTS_OBJS)
 EXTRA_libmdc_la_SOURCES = $(ALL_FRMTS_SOURCES)