aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/autotools.bbclass
diff options
context:
space:
mode:
authorWenzong Fan <wenzong.fan@windriver.com>2012-09-27 16:23:37 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-27 16:29:02 +0100
commitaa66ef6598c84231577d139ec7be413e73fac2b1 (patch)
tree191faaa6f345c6c627dd0b55565a3efd449205b7 /meta/classes/autotools.bbclass
parentbf84ec0fb9a4d01ea75447c2efe8e534ce975b53 (diff)
downloadopenembedded-core-contrib-aa66ef6598c84231577d139ec7be413e73fac2b1.tar.gz
openembedded-core-contrib-aa66ef6598c84231577d139ec7be413e73fac2b1.tar.bz2
openembedded-core-contrib-aa66ef6598c84231577d139ec7be413e73fac2b1.zip
autotools.bbclass: using relative paths for acpaths
Fix autotools.bbclass to use relative paths for acpaths instead of absolute ones. Since absolute paths may cause potential autoreconf error like: Can't exec "/bin/sh": Argument list too long ... This error occurs while building coreutils with long TMPDIR, because it has bunch of m4 files need to be expanded. [YOCTO #2766] Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/autotools.bbclass')
-rw-r--r--meta/classes/autotools.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index e4e034b623..874e01dc74 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -130,7 +130,8 @@ autotools_do_configure() {
if [ x"${acpaths}" = xdefault ]; then
acpaths=
for i in `find ${S} -maxdepth 2 -name \*.m4|grep -v 'aclocal.m4'| \
- grep -v 'acinclude.m4' | sed -e 's,\(.*/\).*$,\1,'|sort -u`; do
+ grep -v 'acinclude.m4' | sed -e 's,\(.*/\).*$,\1,'|sort -u| \
+ sed -e 's,${S},\.,'`; do
acpaths="$acpaths -I $i"
done
else