<div dir='auto'><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Jan 14, 2017 7:16 PM, Paul Smith <paul@mad-scientist.net> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">On Sun, 2017-01-15 at 12:08 +1100, Craig Scott wrote:
<br>
> While not directly answering your question, it seems you may be trying
<br>
> to deal with symbol visibility. Are you aware of CMake's symbol
<br>
> visibility features? A good place to start would be the
<br>
> GenerateExportHeader module, the documentation for which does a
<br>
> reasonable job of showing how to use the visibility features CMake
<br>
> provides.
<br>

<br>
Yes, thanks for that info.  My situation is that I need to force ALL
<br>
symbols to be private, even those from external static shared libraries
<br>
that I'm linking in (whose symbols have global visibility by default).
<br></p></blockquote></div></div></div><div dir="auto">Have you tried the "--exclude-libs ALL" linker option?  Using that should hide symbols from static libraries.</div><div dir="auto"><br></div><div dir="auto">Clint</div></div>