aboutsummaryrefslogtreecommitdiff
path: root/package/pkg-autotools.mk
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2015-01-27 00:30:24 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-02-01 22:25:25 +0100
commit383287ce33c7e8780db3b2a3374aa0b2e57af889 (patch)
tree78a7142f56d6f36d656e95dd387f47b959b783e0 /package/pkg-autotools.mk
parent7cd6782ad79edce02ff6ab6d8885c92ec128ad85 (diff)
downloadbuildroot-383287ce33c7e8780db3b2a3374aa0b2e57af889.tar.gz
buildroot-383287ce33c7e8780db3b2a3374aa0b2e57af889.tar.bz2
pkg-autotools: fix patching libtool for version 2.4
If the libtool used by the package is 2.4 (i.e. with no patchlevel), we end up with a confusing message: /bin/sh: line 0: test: -gt: unary operator expected That's because patchlevel is empty, and thus there is nothing to comapre to 2, and test complains. Fake a patchlevel of 0 (which is really what a missing patchlevel means anyway) in that case. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Peter Korsgaard <jacmet@uclibc.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/pkg-autotools.mk')
-rw-r--r--package/pkg-autotools.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/pkg-autotools.mk b/package/pkg-autotools.mk
index b20e20ef41..b6b83f810f 100644
--- a/package/pkg-autotools.mk
+++ b/package/pkg-autotools.mk
@@ -69,7 +69,7 @@ define LIBTOOL_PATCH_HOOK
elif test $${ltmain_version} = "2.2"; then\
$(APPLY_PATCHES) $${i%/*} support/libtool buildroot-libtool-v2.2.patch; \
elif test $${ltmain_version} = "2.4"; then\
- if test $${ltmain_patchlevel} -gt 2; then\
+ if test $${ltmain_patchlevel:-0} -gt 2; then\
$(APPLY_PATCHES) $${i%/*} support/libtool buildroot-libtool-v2.4.4.patch; \
else \
$(APPLY_PATCHES) $${i%/*} support/libtool buildroot-libtool-v2.4.patch; \