From b863465f87b2aa2df616fa33aa33ecbf21dc99a6 Mon Sep 17 00:00:00 2001 From: SSE4 Date: Thu, 2 Sep 2021 20:34:39 -0700 Subject: [PATCH] - fix iconv detection for boost.locale on iOS (#83) * - fix iconv detection for boost.locale on iOS * clang-darwin doesn't need --start-group * clang-darwin doesn't need -lrt * Also need appletv to have the same exception. `appletv` is another Xcode clang related platform that would have the same limitations. --- src/tools/gcc.jam | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tools/gcc.jam b/src/tools/gcc.jam index 68f59479f..ff8061054 100644 --- a/src/tools/gcc.jam +++ b/src/tools/gcc.jam @@ -393,7 +393,9 @@ local rule compile-link-flags ( * ) local bsd = [ MATCH ^(.*bsd)$ : $(all-os) ] ; threading-flags $(bsd) : -pthread ; - local no-threading = android beos haiku sgi darwin vxworks ; + # iOS doesn't need pthread flag according to the https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/pthread.3.html + # The default system libraries include pthread functions. No additional libraries or CFLAGS are necessary to use this API. + local no-threading = android beos haiku sgi darwin vxworks iphone appletv ; local threading-generic-os = [ set.difference $(all-os) : $(no-threading) $(bsd) windows cygwin solaris qnx ] ; threading-flags $(threading-generic-os) : -pthread : rt ; } @@ -880,7 +882,7 @@ toolset.flags gcc.link.dll .IMPLIB-COMMAND cygwin : "-Wl,--out-implib # default - local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux ] ; + local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux iphone appletv ] ; # Strip the binary when no debugging is needed. We use --strip-all flag # as opposed to -s since icc (intel's compiler) is generally # option-compatible with and inherits from the gcc toolset, but does not