mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 19:15:54 +02:00
clamav: Fix building on ARM.
Disable using fanotify: CC fan.o In file included from fan.c:38: fan-syscalllib.h:14:3: error: #error "System call numbers not defined for this architecture" In file included from fan.c:38: fan-syscalllib.h: In function 'fanotify_init': fan-syscalllib.h:19: error: '__NR_fanotify_init' undeclared (first use in this function) fan-syscalllib.h:19: error: (Each undeclared identifier is reported only once fan-syscalllib.h:19: error: for each function it appears in.) fan-syscalllib.h: In function 'fanotify_mark': fan-syscalllib.h:25: error: '__NR_fanotify_mark' undeclared (first use in this function) make[3]: *** [fan.o] Error 1 make[3]: Leaving directory `/usr/src/clamav-0.98/clamd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/clamav-0.98' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/src/clamav-0.98' make: *** [/usr/src/log/clamav-0.98] Error 2
This commit is contained in:
@@ -36,6 +36,10 @@ PAK_VER = 23
|
||||
|
||||
DEPS = ""
|
||||
|
||||
ifeq "$(MACHINE_TYPE)" "arm"
|
||||
CONFIGURE_FLAGS = --disable-fanotify
|
||||
endif
|
||||
|
||||
###############################################################################
|
||||
# Top-level Rules
|
||||
###############################################################################
|
||||
@@ -77,7 +81,10 @@ $(subst %,%_MD5,$(objects)) :
|
||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@$(PREBUILD)
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/var/ipfire/clamav
|
||||
cd $(DIR_APP) && ./configure \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/var/ipfire/clamav \
|
||||
$(CONFIGURE_FLAGS)
|
||||
cd $(DIR_APP) && make $(MAKETUNING)
|
||||
cd $(DIR_APP) && make install
|
||||
mkdir -p /usr/share/clamav/
|
||||
|
||||
Reference in New Issue
Block a user