Browse Source

package: util-linux: Do not build lsfd if not needed

This actually works around a problem when building against uClibc which
does not seem to provide process_vm_readv syscall and thus compiling
lsfd fails.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Phil Sutter 3 months ago
parent
commit
26ae6a77cb
1 changed files with 5 additions and 0 deletions
  1. 5 0
      package/util-linux/Makefile

+ 5 - 0
package/util-linux/Makefile

@@ -109,6 +109,11 @@ CONFIGURE_ARGS+=	--exec-prefix=/usr \
 			--enable-libuuid \
 			--enable-libblkid \
 			--enable-libmount
+ifneq (${ADK_PACKAGE_LSFD},)
+CONFIGURE_ARGS+=	--enable-lsfd
+else
+CONFIGURE_ARGS+=	--disable-lsfd
+endif
 
 TARGET_CFLAGS+=		-fPIC
 FAKE_FLAGS+=		INSTALLSUID="install -m 4755"