Skip to content

Commit

Permalink
lib/Makefile: only do symbol hiding if told to
Browse files Browse the repository at this point in the history
This restores the ability to build a static lib with
--disable-symbol-hiding and yet keep non-curl_ symbols.

Reported-by: Ran Mozes
Fixes #2830
  • Loading branch information
bagder committed Aug 2, 2018
1 parent 81be254 commit 0a82aba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,11 @@ endif
if CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS
libcurl_la_LDFLAGS_EXTRA += -Wl,--version-script=libcurl.vers
else
# if symbol-hiding is enabled, hide them!
if DOING_CURL_SYMBOL_HIDING
libcurl_la_LDFLAGS_EXTRA += -export-symbols-regex '^curl_.*'
endif
endif

if USE_CPPFLAG_CURL_STATICLIB
libcurl_la_CPPFLAGS_EXTRA += -DCURL_STATICLIB
Expand Down

0 comments on commit 0a82aba

Please sign in to comment.