Revision | 95130ebcac8f42fdef00975bf087a07a28bd751e (tree) |
---|---|
Time | 2022-11-12 17:44:56 |
Author | Fs <Fsu0413@vip....> |
Commiter | Fs |
no longer set CC when building OpenSSL for macOS
OpenSSL since 3.0.7 already passes correct argument to clang when building for macOS.
Signed-off-by: Fs <Fsu0413@vip.qq.com>
@@ -608,10 +608,12 @@ conf.OpenSSL.generateConfTable = function(self, host, job) | ||
608 | 608 | ret.envSet.CC = "clang --target=" .. confDetail.clangTriplet |
609 | 609 | end |
610 | 610 | elseif string.sub(conf.hostToConfMap[host], 1, 3) == "mac" then |
611 | - -- OpenSSL build for macOS is not used when building Qt 5. Since build of Qt 4 has been defuncted, this may also be defuncted. | |
612 | - -- But you know what? OpenSSL is revived in Qt 6! Seems Strange? It's because that SecureTransport has been deprecated by Apple and won't support TLS 1.3! | |
613 | - -- Currently only OpenSSL 3 is building. Since macOS comes with 2 different archtectures, we should distinguish them using CC environment variable | |
614 | - ret.envSet.CC = "clang -arch " .. ((host ~= "macOSM1") and "x86_64" or "arm64") | |
611 | + -- OpenSSL build for macOS is not used when building Qt 5. SecureTransport is used instead. | |
612 | + -- Since build of Qt 4 has been defuncted, this may also be defuncted,,,,, right? | |
613 | + -- No! OpenSSL is revived in Qt 6! Seems Strange? It's because that SecureTransport has been deprecated by Apple and won't support TLS 1.3! | |
614 | + -- Qt since 6.2 supports multiple SSL backend as Qt plugin. So we are building 2 different backends for macOS - SecureTransport and OpenSSL. | |
615 | + | |
616 | + -- nothing special | |
615 | 617 | else |
616 | 618 | error("not supported") |
617 | 619 | end |
@@ -589,7 +589,7 @@ conf.o3mx6 = { | ||
589 | 589 | shared |
590 | 590 | --prefix=&INSTALLROOT& |
591 | 591 | --openssldir=&INSTALLROOT&/ssl |
592 | - darwin64-x86_64-cc | |
592 | + darwin64-x86_64 | |
593 | 593 | -mmacosx-version-min=10.14 |
594 | 594 | ]], |
595 | 595 | } |
@@ -605,7 +605,7 @@ conf.o3ma6 = { | ||
605 | 605 | shared |
606 | 606 | --prefix=&INSTALLROOT& |
607 | 607 | --openssldir=&INSTALLROOT&/ssl |
608 | - darwin64-arm64-cc | |
608 | + darwin64-arm64 | |
609 | 609 | -mmacosx-version-min=10.14 |
610 | 610 | ]], |
611 | 611 | } |