Wireshark-bugs: [Wireshark-bugs] [Bug 10790] link against freshly compiled libraries first
Date: Tue, 20 Jan 2015 02:16:12 +0000

changed bug 10790


What Removed Added
CC   jeff.morriss.ws@gmail.com

Comment # 3 on bug 10790 from
(In reply to Jeroen Roovers from comment #0)
> This patch moves around the order in which the linker finds required
> libraries to ensure the freshly compiled libwiretap and libwsutil come first.

Hmmm, yes, that's what the patch does, but why?

I don't think the patch makes sense; I've always thought (after learning the
hard way in college that it mattered where I put "-lm" on my link line) that
the link order matters; a quick search leads me to this Q&A:

https://stackoverflow.com/questions/45135/linker-order-gcc

which suggests the same.

In Wireshark's case things in libwireshark do depend on things in libwiretap
(sadly) and libwsutil (by design) which would imply that those two libraries
*should* be later in the link line.


You are receiving this mail because:
  • You are watching all bug changes.