On Thu, 16 Mar 2006 09:28:51 -0500
Pierre Girard <[EMAIL PROTECTED]> wrote:

> I intend to compile lots more stuff and so far i put it all in /opt.  
> Why is that a problem?  I don't intend to share it nor do i intend to 
> install precompiled packages.

It is not a problem.  Just my experience talking.  If you have several
libraries that you built, your -L and -R options will get longer and
longer and you have to keep up with where everything is installed.

I cannot find it just now, but I think that Sun's recommendation for
user compiled objects is /opt/local.  It is definitely not /usr/local.
So, if your libraries are in /opt/local/lib, it is simple to always
remember to add -L/opt/local/lib to LDFLAGS, etc.

Plus when you have binaries, you do not have to keep adding something
like /opt/<pkgname>/bin to your PATH.

Normally, LDFLAGS is used by the compiler and LD_OPTIONS is used by the
linker.  But, as you have seen, things typically work if you combine the
two options for LDFLAGS. See man ld for linker options.

Glad to hear clamav is working now.  Successful results from 'make
check' is essential to building GMP and MPFR.


Alex


-- 
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to