Revision | 2d1682ee436d375454e926d4be9b01b918e4243b (tree) |
---|---|
Zeit | 2024-05-10 22:12:52 |
Autor | Fs <Fsu0413@vip....> |
Commiter | Fs |
error out when using OpenSSL for static Qt builds
@@ -590,7 +590,11 @@ conf.Qt.generateConfTable = function(self, host, job, buildTime) | ||
590 | 590 | |
591 | 591 | -- OpenSSL libraries |
592 | 592 | if jobConfigureDetail.opensslConf then |
593 | - local opensslLibPath = conf.OpenSSL.configurations[jobConfigureDetail.opensslConf][(staticBuild and "static" or "") .. "libPath"] | |
593 | + if staticBuild then | |
594 | + error("[Configuration] Currently no static build of Qt should support OpenSSL.") | |
595 | + end | |
596 | + | |
597 | + local opensslLibPath = conf.OpenSSL.configurations[jobConfigureDetail.opensslConf].libPath | |
594 | 598 | if opensslLibPath then |
595 | 599 | local targetDir = "lib" |
596 | 600 | -- todo: deal with the condition where the OpenSSL libs are symbolic link to the real file (only for unix) |
@@ -602,13 +606,13 @@ conf.Qt.generateConfTable = function(self, host, job, buildTime) | ||
602 | 606 | end |
603 | 607 | |
604 | 608 | -- for Qt 6.5+ links OpenSSL to QtBase |
605 | - if (not jobConfigureDetail.crossCompile) and (not staticBuild) then | |
609 | + if (not jobConfigureDetail.crossCompile) then | |
606 | 610 | if string.sub(conf.hostToConfMap[host], 1, 3) == "win" then |
607 | 611 | table.insert(ret.path, commandLineReplacement.OPENSSLDIR .. configureHost.pathSep .. "bin") |
608 | 612 | elseif string.sub(conf.hostToConfMap[host], 1, 3) == "mac" then |
609 | 613 | -- This is not passed through shell and is recognized and cleared when a process is run, and since build process are always called by the build tool this environment variable set is of no use |
610 | 614 | -- now the workaround is keeping the OpenSSL build directory during build process |
611 | - -- Once the Qt library is installed one can run "install_name_tool" to replace the path of OpenSSL libraries | |
615 | + -- Once the Qt library is installed one can run "install_name_tool" to replace the path of OpenSSL libraries (TODO) | |
612 | 616 | -- ret.envSet.DYLD_LIBRARY_PATH = commandLineReplacement.OPENSSLDIR .. configureHost.pathSep .. "lib" |
613 | 617 | end |
614 | 618 | end |