Wireshark requires routines from libm, such as ceil(), so link with it;
authorGuy Harris <guy@alum.mit.edu>
Mon, 31 May 2010 19:37:26 +0000 (19:37 -0000)
committerGuy Harris <guy@alum.mit.edu>
Mon, 31 May 2010 19:37:26 +0000 (19:37 -0000)
we shouldn't rely on getting it pulled in by other shared libraries, as

1) there's no guarantee that the other shared libraries we use
   are linked with it or will continue to be linked with it;

2) there's no guarantee that we're even linking dynamically;

3) it fails on Fedora 13 as part of a change to catch programs
   that implicitly (or explicitly) assume, in their build
   procedures, that they'll get libraries linked in as a result
   of linking with other libraries.

svn path=/trunk/; revision=33028

Makefile.am

index 597cb04ab59789a6a74b98b9fda6098170b7ae98..3526d5d949de5db3cc6337c2ea8c4a75793ffeef 100644 (file)
@@ -318,7 +318,7 @@ wireshark_LDADD = \
        $(plugin_ldadd)                 \
        @PCRE_LIBS@                     \
        @PCAP_LIBS@                     \
-       @GTK_LIBS@                      \
+       @GTK_LIBS@ -lm                  \
        @C_ARES_LIBS@                   \
        @ADNS_LIBS@                     \
        @KRB5_LIBS@                     \