I guess I am being a bit dense here (probably due to lack of cmake expertise), but I have tried and failed at adding the libraries listed by curl config in two different ways that seemed as if it might be appropriate.
In one attempt, I listed each of the static libraries that I built myself as a colon separated list to the --dependency=DIRs flag to ./bootstrap. That attempt was a few hours ago, and (while I don’t remember the specific failure) that attempt was not successful.
In a second attempt, I edited cmake/Modules/FindCurl_EP.make (line 79) to add each of the -L and -l entries listed from curl-config as stated in the above referenced issue 1080. In that attempt, building with --enable-static-tiledb --force-build-all-deps compiled successfully, but then when built into my python module, I received the following error upon attempting to load the module:
ImportError: /usr/local/lib64/python3.7/site-packages/mymodule.cpython-37m-x86_64-linux-gnu.so: undefined symbol: HMAC_CTX_reset
That symbol is from OpenSSL, which leads me to believe I have not linked these libraries properly at some point in the build chain (either building TileDB or building mymodule). Since I had previously been able to build TileDB (without using the --force-build-all-deps) and load it into my module successfully, I believe the contents of my setup.py file are currently sufficient.
If you would be willing to be specific in exactly what needs to be added to the referenced flags to bootstrap or what file might need editing in order to statically compile libcurl.a with all of its dependencies as part of this build process, then I am happy to work from my own fork/branch for now just to get my application into an operational state on AWS.
Thanks again.
p.s. Attempting to include another couple of links to GitHub flagged my post as spam again.