|
@@ -44,19 +44,17 @@ endef
|
|
#
|
|
#
|
|
define PATCH_LIBTOOL
|
|
define PATCH_LIBTOOL
|
|
@$(call MESSAGE,"Patching libtool")
|
|
@$(call MESSAGE,"Patching libtool")
|
|
- $(Q)if test "$($(PKG)_LIBTOOL_PATCH)" = "YES" ]; then \
|
|
|
|
- for i in `find $(1) -name ltmain.sh`; do \
|
|
|
|
- ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' $$i | \
|
|
|
|
- sed -e 's/\([0-9].[0-9]*\).*/\1/' -e 's/\"//'`; \
|
|
|
|
- if test $${ltmain_version} = '1.5'; then \
|
|
|
|
- $(APPLY_PATCHES) $${i%/*} support/libtool buildroot-libtool-v1.5.patch; \
|
|
|
|
- elif test $${ltmain_version} = "2.2"; then\
|
|
|
|
- $(APPLY_PATCHES) $${i%/*} support/libtool buildroot-libtool-v2.2.patch; \
|
|
|
|
- elif test $${ltmain_version} = "2.4"; then\
|
|
|
|
- $(APPLY_PATCHES) $${i%/*} support/libtool buildroot-libtool-v2.4.patch; \
|
|
|
|
- fi \
|
|
|
|
- done \
|
|
|
|
- fi
|
|
|
|
|
|
+ $(Q)for i in `find $(1) -name ltmain.sh`; do \
|
|
|
|
+ ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' $$i | \
|
|
|
|
+ sed -e 's/\([0-9].[0-9]*\).*/\1/' -e 's/\"//'`; \
|
|
|
|
+ if test $${ltmain_version} = '1.5'; then \
|
|
|
|
+ $(APPLY_PATCHES) $${i%/*} support/libtool buildroot-libtool-v1.5.patch; \
|
|
|
|
+ elif test $${ltmain_version} = "2.2"; then\
|
|
|
|
+ $(APPLY_PATCHES) $${i%/*} support/libtool buildroot-libtool-v2.2.patch; \
|
|
|
|
+ elif test $${ltmain_version} = "2.4"; then\
|
|
|
|
+ $(APPLY_PATCHES) $${i%/*} support/libtool buildroot-libtool-v2.4.patch; \
|
|
|
|
+ fi \
|
|
|
|
+ done
|
|
endef
|
|
endef
|
|
|
|
|
|
# This function generates the ac_cv_file_<foo> value for a given
|
|
# This function generates the ac_cv_file_<foo> value for a given
|