Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR corresponds to the Remove Unused Curl Library #1218 PR of the Producer Cpp SDK.
What was changed?
pkg_check_modules
withfind_package
for finding the Curl dependency library.Why was it changed?
find_package
for the OpenSSL libraries which points the linker to the correct location for these libraries/open-source/local/lib
.-lcurl
, it was searched for in the default linker search paths which was finding a different instance of the Curl library installed on the machine.find_package
on Curl there (even though that project does not build Curl), which is why it has previously worked. The Producer Cpp PR corresponding with these changes removes such Curl related operations from the Cpp end, which caused builds to fail since we do not do this here in Producer C.How was it changed?
pkg_check_modules
withfind_package
for the Curl library we build from source with this SDK.What testing was done for the changes?
make VERBOSE=1
when building Producer Cpp to see the paths used for linking libraries.-lcurl -lz ../open-source/local/lib/libssl.a ../open-source/local/lib/libcrypto.a
../open-source/local/lib/libcurl.a -lz ../open-source/local/lib/libssl.a ../open-source/local/lib/libcrypto.a
Note
Zlib is still in the default
-l
search path because we do not build that library from source.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.