[Gllug] Any BSD users on here?

Nix nix at esperi.demon.co.uk
Sat Feb 1 20:55:53 UTC 2003


On Fri, 24 Jan 2003, Stig Brautaset said:
> On Jan 24 2003, Steve wrote:
>> On Fri, 24 Jan 2003 17:00:08 +0000 Tethys Tethys wrote:
>> > Add "-Wl,-rpath /usr/local/lib" to your compile line.
>> > 
>> > Tet
>> 
>> Hi Tet
>> I know this is a silly RTFM question but where is the compile line? 
> 
> A random guess would be to the CFLAGS (or similar) variable. It should
> be near the top of the Makefile.

This should be added to LDFLAGS, which is (by convention) only passed to
the link lines, rather than CFLAGS, which is (by convention) only passed
to the C compilation lines, and *not* to the link lines.

And that line should be -Wl,-rpath,/usr/local/lib; the line you gave
would pass -rpath to the linker and /usr/local/lib to the compiler!

-- 
2003-02-01: the day the STS died.

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list