diff --git a/libs/tinycdb/Makefile b/libs/tinycdb/Makefile index c633c62ab..067844d54 100644 --- a/libs/tinycdb/Makefile +++ b/libs/tinycdb/Makefile @@ -19,6 +19,14 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz include $(INCLUDE_DIR)/package.mk +# Pass CPPFLAGS in the CFLAGS as otherwise the build system will +# ignore them. +TARGET_CFLAGS+=$(TARGET_CPPFLAGS) + +MAKE_FLAGS+= \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDFLAGS)" + define Package/tinycdb SECTION:=libs CATEGORY:=Libraries