From 4fb2cc3b1614a8e4e7b1542240b559f2283cb195 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sat, 6 Dec 2014 16:00:31 +0100 Subject: package/tvheadend: Rework CFLAGS handling for liburiparser Suggested by Thomas: http://article.gmane.org/gmane.comp.lib.uclibc.buildroot/100646 Signed-off-by: Bernd Kuhls Acked-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- package/tvheadend/tvheadend.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'package/tvheadend') diff --git a/package/tvheadend/tvheadend.mk b/package/tvheadend/tvheadend.mk index f593b3f00..e0ce160a1 100644 --- a/package/tvheadend/tvheadend.mk +++ b/package/tvheadend/tvheadend.mk @@ -32,9 +32,10 @@ ifeq ($(BR2_PACKAGE_LIBICONV),y) TVHEADEND_DEPENDENCIES += libiconv endif +TVHEADEND_CFLAGS = $(TARGET_CFLAGS) ifeq ($(BR2_PACKAGE_LIBURIPARSER),y) TVHEADEND_DEPENDENCIES += liburiparser -TVHEADEND_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) $(if $(BR2_USE_WCHAR),,-DURI_NO_UNICODE)" +TVHEADEND_CFLAGS += $(if $(BR2_USE_WCHAR),,-DURI_NO_UNICODE) endif TVHEADEND_DEPENDENCIES += dtv-scan-tables @@ -43,7 +44,7 @@ define TVHEADEND_CONFIGURE_CMDS (cd $(@D); \ $(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_ARGS) \ - $(TVHEADEND_CONF_ENV) \ + CFLAGS="$(TVHEADEND_CFLAGS)" \ ./configure \ --prefix=/usr \ --arch="$(ARCH)" \ -- cgit v1.2.3-70-g09d2