]> code.ossystems Code Review - openembedded-core.git/commit
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:16:36 +0000 (13:16 +0100)
commitb9b75e6cf31991c046713194f75bc61027558464
tree235bf6310e4590018635daed1cc91614b0802b4a
parentc44a459dbbcbdddf5488cbc3df03f568f44cff83
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]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
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]