]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
lldpd: Build with the seccomp filter only on x86_64
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 10 Nov 2025 16:03:04 +0000 (16:03 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 10 Nov 2025 16:03:29 +0000 (16:03 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/lldpd

index e84dfaef205f6a23be0cae5a7bb28f652c34235a..72954fb0d505e88ac06486ff16faa3e3988e49d2 100644 (file)
--- a/lfs/lldpd
+++ b/lfs/lldpd
@@ -32,6 +32,13 @@ DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
+EXTRA_ARGS =
+
+# The seccomp filter is only available for x86_64
+ifeq "$(BUILD_ARCH)" "x86_64"
+       EXTRA_ARGS += --with-seccomp
+endif
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
@@ -78,10 +85,10 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
                --sysconfdir=/etc \
                --localstatedir=/var \
                --disable-static \
-               --with-seccomp \
                --with-privsep-user=nobody \
                --with-privsep-group=nobody \
-               --without-embedded-libevent
+               --without-embedded-libevent \
+               $(EXTRA_ARGS)
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
        @rm -rf $(DIR_APP)