liburing: Simplify CFLAGS assignment for MUSL targets
authorChristian Lachner <redacted>
Thu, 2 Jul 2020 07:04:45 +0000 (09:04 +0200)
committerChristian Lachner <redacted>
Thu, 2 Jul 2020 07:04:45 +0000 (09:04 +0200)
- Simplify the way we deal with additional CFLAGS for MUSL targets

Signed-off-by: Christian Lachner <redacted>
libs/liburing/Makefile

index 409bca3dc27bf22cbd8b9393847b3a72f8b7e358..7238d5bcc4daa84ff0ff3b5283be95281ba67f54 100644 (file)
@@ -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) \
git clone https://git.99rst.org/PROJECT