Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1946299 - Better handling of curl-config for split static package
Summary: Better handling of curl-config for split static package
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: mingw-curl
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Michael Cronenworth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-05 17:58 UTC by Cristian Ciupitu
Modified: 2021-06-23 09:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Cristian Ciupitu 2021-04-05 17:58:04 UTC
Description of problem:
Can not cross-compile programs using the curl library, as static executables.

Version-Release number of selected component (if applicable):
mingw32-curl-static-7.76.0-1.fc34.noarch
mingw64-curl-static-7.76.0-1.fc34.noarch

How reproducible:
Every time

Steps to Reproduce:
1. CC=x86_64-w64-mingw32-gcc or CC=i686-w64-mingw32-gcc
2. $(${CC} -print-sysroot)/mingw/bin/curl-config --static-libs

Actual results:
> curl was built with static libraries disabled

Expected results:
a list of libraries

Additional info:

Comment 1 Cristian Ciupitu 2021-06-22 20:29:09 UTC
Any news on this?

Comment 2 Michael Cronenworth 2021-06-22 20:49:19 UTC
The problem is that upstream built the curl-config script to be specific to the build environment. It doesn't support the combined shared/static library set we produce in our packaging. You either have a shared-aware curl-config or a static-aware curl-config. It doesn't allow for you to support both if both shared and static library packages are installed. I could patch together a curl-config that does support both, but I do not have the spare cycles to do this.

If you want to discuss this with upstream please go ahead.

https://github.com/curl/curl/issues

Comment 3 Cristian Ciupitu 2021-06-23 09:22:22 UTC
Couldn't we have a separate curl-static-config tool?


Note You need to log in before you can comment on or make changes to this bug.