From: Christian Lachner Date: Thu, 2 Jul 2020 07:04:45 +0000 (+0200) Subject: liburing: Simplify CFLAGS assignment for MUSL targets X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=c12c8ceafb54cbda16c8f2b1490924939110b18d;p=openwrt-packages.git liburing: Simplify CFLAGS assignment for MUSL targets - Simplify the way we deal with additional CFLAGS for MUSL targets Signed-off-by: Christian Lachner --- diff --git a/libs/liburing/Makefile b/libs/liburing/Makefile index 409bca3dc..7238d5bcc 100644 --- a/libs/liburing/Makefile +++ b/libs/liburing/Makefile @@ -33,9 +33,7 @@ endef CONFIGURE_ARGS:=--prefix=$(CONFIGURE_PREFIX) --cc=${TARGET_CC} -ifeq ($(CONFIG_USE_MUSL),y) - TARGET_CFLAGS+=-Dloff_t=off_t -endif +TARGET_CFLAGS += $(if $(CONFIG_USE_MUSL),-Dloff_t=off_t) define Build/Compile $(MAKE) $(PKG_BUILD_DIR) \