git-svn: trunk@4389
Török Edvin authored on 2008/11/13 03:31:38... | ... |
@@ -1,3 +1,9 @@ |
1 |
+Wed Nov 12 19:32:17 EET 2008 (edwin) |
|
2 |
+------------------------------------ |
|
3 |
+ * libclamav/readdb.c, libltdl/Makefile.am, libltdl/Makefile.in: Fix |
|
4 |
+ -Werror build: there is no libltdl directory when building with |
|
5 |
+ VPATH, $(srcdir)/libltdl is enough. Filter -Werror in libltdl. |
|
6 |
+ |
|
1 | 7 |
Wed Nov 12 19:03:36 EET 2008 (edwin) |
2 | 8 |
------------------------------------ |
3 | 9 |
* clamd/thrmgr.c, unit_tests/check_clamav.c, |
... | ... |
@@ -85,7 +85,7 @@ int (*cli_unrar_extract_next)(unrar_state_t *state, const char *dirname); |
85 | 85 |
void (*cli_unrar_close)(unrar_state_t *state); |
86 | 86 |
int have_rar = 0; |
87 | 87 |
|
88 |
-void cli_rarload(void) { |
|
88 |
+static void cli_rarload(void) { |
|
89 | 89 |
lt_dlhandle rhandle; |
90 | 90 |
|
91 | 91 |
#ifndef CL_THREAD_SAFE |
... | ... |
@@ -28,6 +28,9 @@ |
28 | 28 |
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
29 | 29 |
##### |
30 | 30 |
|
31 |
+# ClamAV: filter -Werror here |
|
32 |
+CFLAGS=`echo "@CFLAGS@" | sed -e 's/-Werror[^-]//'` |
|
33 |
+ |
|
31 | 34 |
ACLOCAL_AMFLAGS = -I m4 |
32 | 35 |
AUTOMAKE_OPTIONS = foreign |
33 | 36 |
AM_CPPFLAGS = |
... | ... |
@@ -44,7 +47,7 @@ MOSTLYCLEANFILES = |
44 | 44 |
# -I$(srcdir) is needed for user that built libltdl with a sub-Automake |
45 | 45 |
# (not as a sub-package!) using 'nostdinc': |
46 | 46 |
AM_CPPFLAGS += -DLT_CONFIG_H='<$(LT_CONFIG_H)>' \ |
47 |
- -DLTDL -I. -I$(srcdir) -Ilibltdl \ |
|
47 |
+ -DLTDL -I. -I$(srcdir) \ |
|
48 | 48 |
-I$(srcdir)/libltdl -I$(srcdir)/libltdl |
49 | 49 |
AM_LDFLAGS += -no-undefined |
50 | 50 |
LTDL_VERSION_INFO = -version-info 9:0:2 |
... | ... |
@@ -162,7 +162,9 @@ AWK = @AWK@ |
162 | 162 |
CC = @CC@ |
163 | 163 |
CCDEPMODE = @CCDEPMODE@ |
164 | 164 |
CFGDIR = @CFGDIR@ |
165 |
-CFLAGS = @CFLAGS@ |
|
165 |
+ |
|
166 |
+# ClamAV: filter -Werror here |
|
167 |
+CFLAGS = `echo "@CFLAGS@" | sed -e 's/-Werror[^-]//'` |
|
166 | 168 |
CHECK_CPPFLAGS = @CHECK_CPPFLAGS@ |
167 | 169 |
CHECK_LIBS = @CHECK_LIBS@ |
168 | 170 |
CLAMAVGROUP = @CLAMAVGROUP@ |
... | ... |
@@ -314,7 +316,7 @@ AUTOMAKE_OPTIONS = foreign |
314 | 314 |
# -I$(srcdir) is needed for user that built libltdl with a sub-Automake |
315 | 315 |
# (not as a sub-package!) using 'nostdinc': |
316 | 316 |
AM_CPPFLAGS = -DLT_CONFIG_H='<$(LT_CONFIG_H)>' -DLTDL -I. -I$(srcdir) \ |
317 |
- -Ilibltdl -I$(srcdir)/libltdl -I$(srcdir)/libltdl |
|
317 |
+ -I$(srcdir)/libltdl -I$(srcdir)/libltdl |
|
318 | 318 |
AM_LDFLAGS = -no-undefined |
319 | 319 |
BUILT_SOURCES = $(ARGZ_H) |
320 | 320 |
include_HEADERS = $(am__append_1) |