• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision95130ebcac8f42fdef00975bf087a07a28bd751e (tree)
Time2022-11-12 17:44:56
AuthorFs <Fsu0413@vip....>
CommiterFs

Log Message

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>

Change Summary

Incremental Difference

--- a/Compile/lib/Configuration.lua
+++ b/Compile/lib/Configuration.lua
@@ -608,10 +608,12 @@ conf.OpenSSL.generateConfTable = function(self, host, job)
608608 ret.envSet.CC = "clang --target=" .. confDetail.clangTriplet
609609 end
610610 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
615617 else
616618 error("not supported")
617619 end
--- a/Compile/lib/opensslCompile/conf.lua
+++ b/Compile/lib/opensslCompile/conf.lua
@@ -589,7 +589,7 @@ conf.o3mx6 = {
589589 shared
590590 --prefix=&INSTALLROOT&
591591 --openssldir=&INSTALLROOT&/ssl
592- darwin64-x86_64-cc
592+ darwin64-x86_64
593593 -mmacosx-version-min=10.14
594594 ]],
595595 }
@@ -605,7 +605,7 @@ conf.o3ma6 = {
605605 shared
606606 --prefix=&INSTALLROOT&
607607 --openssldir=&INSTALLROOT&/ssl
608- darwin64-arm64-cc
608+ darwin64-arm64
609609 -mmacosx-version-min=10.14
610610 ]],
611611 }