[Buildroot] [RFC v3 15/30] mjpg-streamer: add support for the per-package staging directory

Fabio Porcedda fabio.porcedda at gmail.com
Tue Mar 3 09:17:20 UTC 2015


Add -I$(STAGING_DIR)/usr/include to the CFLAGS environment variable and
$(TARGET_LDFLAGS) to the LFAGS environment variable of the make command.

Signed-off-by: Fabio Porcedda <fabio.porcedda at gmail.com>
---
 package/mjpg-streamer/mjpg-streamer.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/mjpg-streamer/mjpg-streamer.mk b/package/mjpg-streamer/mjpg-streamer.mk
index 2385429..7f3c355 100644
--- a/package/mjpg-streamer/mjpg-streamer.mk
+++ b/package/mjpg-streamer/mjpg-streamer.mk
@@ -15,7 +15,8 @@ MJPG_STREAMER_LICENSE_FILES = LICENSE
 MJPG_STREAMER_DEPENDENCIES = jpeg
 
 define MJPG_STREAMER_BUILD_CMDS
-	$(TARGET_MAKE_ENV) $(MAKE) CC=$(TARGET_CC) -C $(@D)
+	$(TARGET_MAKE_ENV) CFLAGS="-I$(STAGING_DIR)/usr/include" \
+	LFLAGS="$(TARGET_LDFLAGS)" $(MAKE) CC=$(TARGET_CC) -C $(@D)
 endef
 
 define MJPG_STREAMER_INSTALL_TARGET_CMDS
-- 
2.3.1



More information about the buildroot mailing list