cURL / Mailing Lists / curl-library / Single Mail

curl-library

Arch-specific curlbuild.h

From: Benjamin Smedberg <benjamin_at_smedbergs.us>
Date: Tue, 10 Mar 2009 20:49:23 -0400

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've seen a couple threads about the arch-specific curlbuild.h file and its
affect on multilib distributions (such as Linux x86-64/i686) which I
discovered when Fedora recently upgraded me.

Typically, arch-specific headers belong in arch-specific locations. In the
typical Linux distro, this would be /usr/lib/packagename/include/headers.h

I would like to alter installation so that the arch-neutral headers go to
$includedir/curl, and the arch-specific files to $libdir/curl/include.

I'm less clear on what to do about curl-config. pkgconfig uses different
directories for each arch, e.g. /usr/lib/pkgconfig and /usr/lib64/pkgconfig.
Some options are:

* port curl to use pkg-config instead of a curl-config binary
* move curl-config to $libdir/curl/curl-config
* Somehow make curl-config multi-arch aware, perhaps by accepting a --prefix
option. I'm not sure how to do this one

I'm happy to write the necessary patches (except for the last option, which
I'm not sure how to do).

- --BDS
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFJtwqTSSwGp5sTYNkRAvg6AKDiL3NpOrfbrgqEfaSrieAWlrYOpgCfeyv5
RI6yi2squf2vxELYRcuXTxw=
=/QKj
-----END PGP SIGNATURE-----
Received on 2009-03-11