]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
sysstat: fix passing CFLAGS to make
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 12 May 2014 03:27:06 +0000 (07:27 +0400)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 12 May 2014 20:49:42 +0000 (22:49 +0200)
SYSSTAT_MAKE_OPT is a string used to pass options to make, '+=' operator
doesn't have any special meaning inside it, so CFLAGS+=... is passed to
shell, overwriting previous CFLAGS value.

Replace CFLAGS+="..." with CFLAGS="$(TARGET_CFLAGS) ...".

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/sysstat/sysstat.mk

index d3d7519fb92a56769a96a5086319eeaedee3eece..23486b6d581165f448245b13381cafde61ddbcb8 100644 (file)
@@ -14,7 +14,7 @@ SYSSTAT_LICENSE_FILES = COPYING
 
 ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
 SYSSTAT_DEPENDENCIES += gettext
-SYSSTAT_MAKE_OPT += CFLAGS+=-lintl
+SYSSTAT_MAKE_OPT += CFLAGS="$(TARGET_CFLAGS) -lintl"
 endif
 
 # The isag tool is a post processing script that depends on tcl/tk