From: Bernd Kuhls Date: Sat, 6 Dec 2014 15:00:31 +0000 (+0100) Subject: package/tvheadend: Rework CFLAGS handling for liburiparser X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4fb2cc3b1614a8e4e7b1542240b559f2283cb195;p=buildroot.git 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 --- diff --git a/package/tvheadend/tvheadend.mk b/package/tvheadend/tvheadend.mk index f593b3f00e..e0ce160a12 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)" \