summaryrefslogtreecommitdiffstats
path: root/package/perl-netaddr-ip/perl-netaddr-ip.hash
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2015-10-21 23:21:07 +0200
committerPeter Korsgaard <peter@korsgaard.com>2015-10-25 23:01:48 +0100
commit32e2636c51e409f108f24174257ea4867ec6d74d (patch)
tree8fd84236105a127d44caaefbf1ee6b105f9fa223 /package/perl-netaddr-ip/perl-netaddr-ip.hash
parentd9d1d56426edebec8c751ddc8a5dfbc7dee58f9c (diff)
downloadbuildroot-32e2636c51e409f108f24174257ea4867ec6d74d.tar.gz
buildroot-32e2636c51e409f108f24174257ea4867ec6d74d.zip
toolchain/wrapper: fix potential bug in foreach loop
In Makefile, the comma ',' is used to separate the arguments passed to functions, so we should not be allowed to use straight commas in strings we want to expand. For the toolchain wrapper, we need to transform a list: -mfoo -mbar -mbuz into something acceptable for a C array assignment: "-mfoo", "-mbar", "-mbuz", So, we use a $(foreach ...) loop for that. However, we do have a straight comma in there. It does not cause any issue in practice, since $(foreach) is a make builtin function that accepts three and only three parameters. However, this is not sane. Change the straight comma to the usual $(comma) expansion, like we would do for a call to any other function. At the same time, make the code a bit easier to read, by first creating the transformed list, and then creating the define. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Arnout Vandecappelle <arnout@mind.be> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/perl-netaddr-ip/perl-netaddr-ip.hash')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud