-
Notifications
You must be signed in to change notification settings - Fork 258
Cross-build not finding libraries #119
Comments
I agree this should be fixed. In our azure-c-shared-utility dependency, the root CMakeLists.txt file simply references curl, without doing a proper CMake |
I submitted a pull request in the azure-c-shared-utility repo for this. |
For future reference, you can specify compiler and linker flags in
WARNING: This is pure cargo-cult cut-and-paste. I don't really understand what |
The handling of cross development appears to be fundamentally broken.
In my cmake toolchain file, I specify where the libraries are. When
building c-utility, it finds libssl, but not libcurl (which is in the
same directory).
Here's the content of deps/c-utility/build/error.txt:
And here's deps/c-utility/build/CMakeFiles/aziotsharedutil.dir/link.txt:
As you can see cmake found the ssl library files and specifed the full
path. But for the curl library (which is in the same location as ssl
library files), it just uses "-lcurl". That's broken.
I've tried setting CMAKE_EXE_LINKER_FLAGS, CMAKE_SHARED_LINKER_FLAGS,
CMAKE_C_FLAGS with "-L" options to specify the library directory, but
those settings are apparently ignored and never show up in
aziotsharedutil.dir/link.txt
How are you supposed to configure the location of library files when
doing cross development?
The text was updated successfully, but these errors were encountered: