cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl-config

From: Todd Fisher <taf2_at_lehigh.edu>
Date: Tue, 24 Aug 2004 11:59:35 -0700

Attached, is a patch for curl-config. It detects via CC if the msvc
compilier is being used and
returns linker flags that would be appropriate for the msvc compilier.

-todd

Daniel Stenberg wrote:

> On Sat, 3 Jul 2004, todd wrote:
>
>>> I don't understand. What would curl-config --msvc-syntax show?
>>>
>> currently, curl-config --libs prints something like:
>>
>> $ curl-config --libs
>> $ -L/usr/lib -lcurl -L/usr/kerberos/lib -lssl -lcrypto -lgssapi_krb5
>> -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -L/usr/kerberos/lib
>> -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err
>> -lk5crypto -lresolv -ldl -lz -lz
>
>
> curl-config --libs is required because the lib setup can get so very
> different on different hosts. It is dynamically set on each build.
>
>> $ pkg-config glib-2.0 --msvc-syntax
>> $ /libpath:C:\usr\lib libglib-2.0.lib libintl.lib libiconv.lib
>>
>> this makes it very nice for cygwin users who would like to write gnu
>> style makefiles but also use the native compilier.
>
>
> But curl-config is a shell script, it could only be used by the rare
> few windows people that run shell scripts.
>
> There are also several other options for cygwin users who want to use
> a native compiler, including Borland and mingw.
>
> Please provide a patch, and I might understand how this would work and
> then we can discuss implementation details.
>

Received on 2004-08-24