0004-fix-static-linking-with-icu-uc.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. From ffff12fd321c7a056e796e74cc508726b0626ae0 Mon Sep 17 00:00:00 2001
  2. From: Romain Naour <romain.naour@openwide.fr>
  3. Date: Wed, 22 Jul 2015 22:43:25 +0200
  4. Subject: [PATCH] fix static linking with icu-uc
  5. During static linking with a C application and libicuuc.a,
  6. -lstdc++ is required.
  7. Add -lstdc++ in Libs.private of icu-uc.pc.
  8. Fixes:
  9. http://autobuild.buildroot.net/results/210/2107f9dfb39eeb6559fb4271c7af8b39aef521ca/
  10. Signed-off-by: Romain Naour <romain.naour@openwide.fr>
  11. ---
  12. source/Makefile.in | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/source/Makefile.in b/source/Makefile.in
  15. index 9db6c52..ca48e16 100644
  16. --- a/source/Makefile.in
  17. +++ b/source/Makefile.in
  18. @@ -264,7 +264,7 @@ config/icu-uc.pc: config/icu.pc Makefile icudefs.mk
  19. @echo "Description: $(PACKAGE_ICU_DESCRIPTION): Common and Data libraries" >> $@
  20. @echo "Name: $(PACKAGE)-uc" >> $@
  21. @echo "Libs:" '-L$${libdir}' "${ICULIBS_UC}" "${ICULIBS_DT}" >> $@
  22. - @echo "Libs.private:" '$${baselibs}' >> $@
  23. + @echo "Libs.private:" '$${baselibs}' -lstdc++ >> $@
  24. @echo $@ updated.
  25. config/icu-i18n.pc: config/icu.pc Makefile icudefs.mk
  26. --
  27. 2.4.3