-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[EMAIL PROTECTED] wrote:
| People who may have problems compiling ClamAV 0.93 with the FreeBSD
| ports on 4.11 may need to patch the port Makefile as I had to. I am
| not sure if it affects other FreeBSD versions or not, I didn't try it.
|
| --- Makefile.orig Wed Apr 16 10:59:51 2008
| +++ Makefile Wed Apr 16 11:37:41 2008
| @@ -108,7 +108,7 @@
| .if ${OSVERSION} >= 601000
| PTHREAD_LIBS= -lthr
| .else
| -PTHREAD_LIBS= -lpthread
| +PTHREAD_LIBS= -pthread
| .endif
|
| .if defined(WITH_ARC)
|
| Steven
Steven,
The -pthread should only be needed on IBM RS/6000 and PowerPC platforms.
SPARC has their own option and everyone else should follow into the -l
category.
Directly from the gcc man page...
~ -l library
~ Search the library named library when linking. (The second
alter-
~ native with the library as a separate argument is only for POSIX
~ compliance and is not recommended.)
~ It makes a difference where in the command you write this
option;
~ the linker searches and processes libraries and object files
in the
~ order they are specified. Thus, foo.o -lz bar.o searches
library z
~ after file foo.o but before bar.o. If bar.o refers to
functions in
~ z, those functions may not be loaded.
~ The linker searches a standard list of directories for the
library,
~ which is actually a file named liblibrary.a. The linker
then uses
~ this file as if it had been specified precisely by name.
~ The directories searched include several standard system
directo-
~ ries plus any that you specify with -L.
~ Normally the files found this way are library
files---archive files
~ whose members are object files. The linker handles an
archive file
~ by scanning through it for members which define symbols that
have
~ so far been referenced but not defined. But if the file that is
~ found is an ordinary object file, it is linked in the usual
fash-
~ ion. The only difference between using an -l option and
specifying
~ a file name is that -l surrounds library with lib and .a and
~ searches several directories.
~ SPARC Options
~ ---------------------
~ -pthreads
~ Add support for multithreading using the POSIX threads library.
~ This option sets flags for both the preprocessor and
linker. This
~ option does not affect the thread safety of object code produced
~ by the compiler or that of libraries supplied with it.
~ IBM RS/6000 and PowerPC Options
~ ---------------------
~ -pthread
~ Adds support for multithreading with the pthreads library. This
~ option sets flags for both the preprocessor and linker.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkgGRcEACgkQkNLDmnu1kSn98gCeJdfvKcH3HtWsxj7vinM/RKkY
8/gAnjGwXMm0XO6fgcch/kiuY1UGNaJF
=vVyt
-----END PGP SIGNATURE-----
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html