From mboxrd@z Thu Jan 1 00:00:00 1970 From: alexmonthy@voxpopuli.im (Alexandre Montplaisir) Date: Fri, 25 Jan 2013 12:57:14 -0500 Subject: [lttng-dev] Odd dependency for lttng-ust - resolved In-Reply-To: <3CA1A65C03C1A34C81BBC6272782E696987A76@valcartierex01.valcartier.drdc-rddc.gc.ca> References: <3CA1A65C03C1A34C81BBC6272782E696987A76@valcartierex01.valcartier.drdc-rddc.gc.ca> Message-ID: <5102C77A.5040409@voxpopuli.im> Hi Daniel, On 13-01-25 12:32 PM, Thibault, Daniel wrote: > [...] > > Until this old gold bug is fixed (which looks unlikely considering its age), maybe each package's configure.ac could be made to explicitly look into /usr/local/lib when /lib and /usr/lib fail? Or the ReadMe files of lttng-ust and lttng-tools could be modified to mention the workaround? > I'm not sure if they are any distro that uses gold by default, instead of the more venerable/tested "ld". I know Ubuntu doesn't. I think in your case the problem was because you still had the libraries from Ubuntu's older package installed in /usr/lib, and as you mentioned, the linker looks in that location before trying /usr/local/lib. In such a "custom" setup, you would need to override LDFLAGS. But someone that has nothing installed in /usr/lib should get the libraries in /usr/local/lib selected by the linker automatically. Cheers, Alexandre