2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00

- 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.
This commit is contained in:
SSE4
2021-09-02 20:34:39 -07:00
committed by GitHub
parent c276640527
commit b863465f87

View File

@@ -393,7 +393,9 @@ local rule compile-link-flags ( * )
local bsd = [ MATCH ^(.*bsd)$ : $(all-os) ] ;
threading-flags <target-os>$(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 <target-os>$(threading-generic-os) : -pthread : rt ;
}
@@ -880,7 +882,7 @@ toolset.flags gcc.link.dll .IMPLIB-COMMAND <target-os>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