configure: add symbols versioning option

Allow, at configure time, the production of versioned symbols. The
symbols will look like "CURL_<FLAVOUR>_<VERSION> <SYMBOL>", where
<FLAVOUR> represents the SSL flavour (e.g. OPENSSL, GNUTLS, NSS, ...),
<VERSION> is the major SONAME version and <SYMBOL> is the actual symbol
name. If no SSL library is enabled the symbols will be just
"CURL_<VERSION> <SYMBOL>".
This commit is contained in:
Alessandro Ghedini
2011-12-16 15:33:48 +01:00
committed by Daniel Stenberg
parent 3c18b38dcc
commit 7cc2e8b349
4 changed files with 74 additions and 2 deletions

13
lib/libcurl.vers.in Normal file
View File

@@ -0,0 +1,13 @@
HIDDEN
{
local:
__*;
_rest*;
_save*;
};
CURL_@VERSIONED_FLAVOUR@4
{
global: curl_*;
local: *;
};