stress-ng: fix build on macos
authorSergey V. Lobanov <redacted>
Mon, 24 Jan 2022 22:41:09 +0000 (01:41 +0300)
committerSergey V. Lobanov <redacted>
Mon, 24 Jan 2022 22:41:09 +0000 (01:41 +0300)
This patch adds KERNEL=Linux to MAKE_FLAGS to avod Darwin detection.
If Makefile detects Darwin, it removes -lbsd from build flags, but
this flag is required due to target is always Linux, not bsd-like.

Signed-off-by: Sergey V. Lobanov <redacted>
utils/stress-ng/Makefile

index 4cc799365c19e8efd10d2da05750f9efb87097ed..2ae580036e26a051bd0bcf437c3581d5f74d103c 100644 (file)
@@ -36,6 +36,9 @@ was designed to exercise various physical subsystems of a computer as well as
 the various operating system kernel interfaces.
 endef
 
+MAKE_FLAGS += \
+       KERNEL=Linux
+
 define Package/stress-ng/install
        $(INSTALL_DIR) $(1)/usr/bin
        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stress-ng $(1)/usr/bin/
git clone https://git.99rst.org/PROJECT