From 89c49a64c779b8bf88212172e5b7cbdae525c427 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Fri, 7 Jul 2017 15:56:37 -0700 Subject: [PATCH] portaudio: Pass down TARGET_CPPFLAGS only build what is necessary We were not correctly passing down TARGET_CPPFLAGS which made external toolchains not automatically searching for headers in $(STAGING_DIR) to fail the build. We are also just packaging the library and headers, so we do not need to build the tests and selftests. Signed-off-by: Florian Fainelli --- sound/portaudio/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sound/portaudio/Makefile b/sound/portaudio/Makefile index ffa5cfb05b..c8acc1c32d 100644 --- a/sound/portaudio/Makefile +++ b/sound/portaudio/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=portaudio PKG_VERSION:=19_20140130 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=pa_stable_v$(PKG_VERSION).tgz PKG_SOURCE_URL:=http://www.portaudio.com/archives/ @@ -46,6 +46,12 @@ CONFIGURE_ARGS+= \ --without-jack \ --with-oss \ +EXTRA_CFLAGS += $(TARGET_CPPFLAGS) + +define Build/Compile + $(call Build/Compile/Default,lib/libportaudio.la) +endef + define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) \