Don't link wireshark against the Qt libraries and don't like wireshark-qt
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 26 Jun 2013 15:12:50 +0000 (15:12 +0000)
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 26 Jun 2013 15:12:50 +0000 (15:12 +0000)
against the Gtk+ libraries.

(I didn't notice this before because the resulting programs aren't, on my
system, actually linked against the libraries they don't use--presumably
because of the "-Wl,--as-needed" flag.)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@50170 f5534014-38df-0310-8fa8-9805f1628bb7

Makefile.am

index 913697d53e27e73f303b40d69440de5818272194..cd9da78cf706534b5279297eaccbeabb3419a725 100644 (file)
@@ -46,7 +46,7 @@ bin_PROGRAMS = \
        @dumpcap_bin@           \
        @reordercap_bin@        \
        @rawshark_bin@          \
-       @echld_test_bin@ 
+       @echld_test_bin@
 
 EXTRA_PROGRAMS = wireshark wireshark-qt tshark capinfos editcap mergecap \
        dftest randpkt text2pcap dumpcap reordercap rawshark wireshark_cxx \
@@ -379,8 +379,6 @@ wireshark_ldadd = \
        @LIBGNUTLS_LIBS@                \
        @LIBSMI_LDFLAGS@                \
        @PORTAUDIO_LIBS@                \
-       @GTK_LIBS@                      \
-       @Qt_LIBS@                       \
        @GLIB_LIBS@                     \
        -lm
 
@@ -388,7 +386,7 @@ if HAVE_Qt
 wireshark_qt_SOURCES = $(WIRESHARK_COMMON_SRC)
 wireshark_qt_INCLUDES = $(WIRESHARK_COMMON_INCLUDES)
 wireshark_qt_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
-wireshark_qt_LDADD =  ui/qt/libqtui.a $(wireshark_ldadd)
+wireshark_qt_LDADD =  ui/qt/libqtui.a $(wireshark_ldadd) @Qt_LIBS@
 wireshark_qt_LINK = $(CXXLINK)
 endif
 
@@ -396,7 +394,7 @@ if HAVE_GTK
 wireshark_SOURCES = $(WIRESHARK_COMMON_SRC)
 wireshark_INCLUDES = $(WIRESHARK_COMMON_INCLUDES)
 wireshark_CFLAGS = $(AM_CLEAN_CFLAGS) $(py_dissectors_dir)
-wireshark_LDADD = ui/gtk/libgtkui.a $(wireshark_ldadd)
+wireshark_LDADD = ui/gtk/libgtkui.a $(wireshark_ldadd) @GTK_LIBS@
 wireshark_LINK = $(LINK)
 endif