mirror of
https://github.com/moparisthebest/curl
synced 2024-11-16 06:25:03 -05:00
lib/Makefile: only do symbol hiding if told to
This restores the ability to build a static lib with --disable-symbol-hiding to keep non-curl_ symbols. Researched-by: Dan Fandrich Reported-by: Ran Mozes Fixes #2830 Closes #2831
This commit is contained in:
parent
81be254870
commit
7279c47f11
@ -107,8 +107,11 @@ endif
|
|||||||
if CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS
|
if CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS
|
||||||
libcurl_la_LDFLAGS_EXTRA += -Wl,--version-script=libcurl.vers
|
libcurl_la_LDFLAGS_EXTRA += -Wl,--version-script=libcurl.vers
|
||||||
else
|
else
|
||||||
|
# if symbol-hiding is enabled, hide them!
|
||||||
|
if DOING_CURL_SYMBOL_HIDING
|
||||||
libcurl_la_LDFLAGS_EXTRA += -export-symbols-regex '^curl_.*'
|
libcurl_la_LDFLAGS_EXTRA += -export-symbols-regex '^curl_.*'
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
if USE_CPPFLAG_CURL_STATICLIB
|
if USE_CPPFLAG_CURL_STATICLIB
|
||||||
libcurl_la_CPPFLAGS_EXTRA += -DCURL_STATICLIB
|
libcurl_la_CPPFLAGS_EXTRA += -DCURL_STATICLIB
|
||||||
|
Loading…
Reference in New Issue
Block a user