Skip to content

Commit

Permalink
(#7908) boost: checking libiconv exists even if libc already found
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonHorbach authored Nov 13, 2021
1 parent 36f1df6 commit 3491c18
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion recipes/boost/all/patches/1.69.0-locale-no-system.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
This library links to boost_system, even though that library is header-only.
--- libs/locale/build/Jamfile.v2
+++ libs/locale/build/Jamfile.v2
@@ -403,7 +403,7 @@
@@ -410,7 +410,7 @@
result += <source>util/gregorian.cpp ;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,21 @@ index 578e722..b715f59 100644
feature.feature boost.locale.icu : on off : optional propagated ;
feature.feature boost.locale.posix : on off : optional propagated ;
feature.feature boost.locale.std : on off : optional propagated ;
@@ -217,6 +218,14 @@ rule configure-full ( properties * : flags-only )
@@ -217,6 +217,21 @@ rule configure-full ( properties * : flags-only )
if [ configure.builds has_iconv : $(properties) : "iconv (libc)" ]
{
found-iconv = true ;
+ if <boost.locale.iconv.lib>libiconv in $(properties)
+ {
+ EXIT "- Boost.Locale found iconv (libc) instead of iconv (separate) library to be built." ;
+ }
+ {
+ if [ configure.builds has_external_iconv : $(properties) : "iconv (separate)" ]
+ {
+ result += <library>iconv ;
+ }
+ else
+ {
+ EXIT "- Boost.Locale found iconv (libc) instead of iconv (separate) library to be built." ;
+ }
+ }
+ }
+ else if <boost.locale.iconv.lib>libc in $(properties)
+ {
Expand Down

0 comments on commit 3491c18

Please sign in to comment.