A linker warning on OpenBSD has shown the real cause of this:
/usr/bin/ld: warning: libclamunrar_iface.so.3.3, needed by
../libclamav/.libs/libclamav.so.4.1, may conflict with libclamunrar_iface.so.4.1
When -L/usr/local/lib is needed (because of either bz2, gmp, zlib)
it was the first on the linker command-line.
If multiple -L are on the linker line they don't override each-other,
all -L directories are searched.
So "-L/usr/local/lib -lgmp -L../libclamunrar/.libs/ -lclamunrar"
means to link to libclamunrar in /usr/local/lib first, which causes linking
to the old library.
If we pass the .la files first to the linker, we avoid linking to old libraries.
git-svn: trunk@3835
test for attribute((packed)) only on GNUC compilers, because Sun's cc ignores it
move iconv check after zlib/bzip2 checks
use ../ to avoid problems with spaces in directory names
git-svn: trunk@3671
Markus Elfring <Markus.Elfring*web.de> in bb #452)
* use AC_CONFIG_HEADER, since AM_CONFIG_HEADER is obsolete
* put configure files into auxiliary directory
* fix main declaration in FD_SETSIZE test
* check for failure on fopen in FD_SETSIZE test
* move version from AM_INIT_AUTOMAKE to AC_INIT, old form was obsolete
* eliminate automake warnings, update Makefile.am
* rename .splitted to .split (requested by aCaB)
git-svn: trunk@3563
use $GREP to grep binary files, needed for autoit to build on Solaris.
add support for both GNU and Sun ld version scripts.
add version script maps to libclamunrar, libclamunrar_iface. Enumerate all symbols, Sun's ld doesn't support cl_* (only *).
cli_decodesig needs a dummy definition on Solaris.
git-svn: trunk@3474
cl_ symbols are exported with a CLAMAV_PUBLIC version,
cli_ symbols with a CLAMAV_PRIVATE version.
TODO: reduce number of cli_* symbols exported.
clamav-milter/Makefile.in/am: fix out-of-tree builds of manpage.
git-svn: trunk@3463
This code is licensed under the 3-clause BSD.
This will be used instead of system provided regexec()/regcomp() to
have consistent behaviour across platforms.
git-svn: trunk@3225