gcc-cross: argument list too long when do_install
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 14 Jun 2012 02:21:07 +0000 (10:21 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Jun 2012 12:22:17 +0000 (13:22 +0100)
commite9064da9bd6efefb8c853c2d23dbb9f14c9f5189
tree879a13c125ae8174ae464953e78a491ee1e967a1
parent637425480dfa7d946446ac4e78e59a2c2bb3e4d2
gcc-cross: argument list too long when do_install

There would be an "Argument list too long" error when the length of
tmpdir is longer than 190, this is caused by:

headers=`echo $(PLUGIN_HEADERS) | tr ' ' '\012' | sort -u`

The PLUGIN_HEADERS is too long before sort, so the "echo" can't handle
it, use the $(sort list) of GNU make which can handle the too long list
would fix the problem, the header would be short enough after sorted.
The "tr ' ' '\012'" was used for translating the space to "\n", the
$(sort list) doesn't need this.

This doesn't impact the output, so it doesn't need the PR bump.

[YOCTO #2591]

(From OE-Core rev: b9b75e6cf31991c046713194f75bc61027558464)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-4.6.inc
meta/recipes-devtools/gcc/gcc-4.6/gcc-argument-list-too-long.patch [new file with mode: 0644]
meta/recipes-devtools/gcc/gcc-4.7.inc
meta/recipes-devtools/gcc/gcc-4.7/gcc-argument-list-too-long.patch [new file with mode: 0644]