Closed lhoward closed 2 weeks ago
Ah, yes, right you are.
@finagolfin is there a way to ensure the Android SDK is always compiling PIC even when not building shared libraries?
I'm going to close this because it needs to be fixed in the Android SDK.
is there a way to ensure the Android SDK is always compiling PIC even when not building shared libraries?
We used to set it in the destination config until Swift 6, but I thought it was made the default now, so I didn't bother setting it in the new Swift 6 SDK bundle.
If that's not the case, you can always pass in -Xcc -fPIC
on the command-line, or we can change the default for the Android SDK bundle.
Thanks. Actually I just removed the swift-crypto dependency from my app, was the simplest solution for now :)
Build with -fPIC on Android as it is not the default, and is necessary if swift-crypto is to be embedded into a shared library.