]> granicus.if.org Git - gc/commit
Pass -D GC_DLL -fvisibility=hidden if default configure build is requested
authorIvan Maidanski <ivmai@mail.ru>
Fri, 26 Jul 2019 18:24:18 +0000 (21:24 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 26 Jul 2019 18:24:18 +0000 (21:24 +0300)
commitffd39036002e6ecdd69a1ebe327a0db039149c9b
tree52b6d33aaaa0dfb869dc2ed618389578c328f684
parentc7a356af39d1cbfcd04d02b1c9e4abc2f56ae222
Pass -D GC_DLL -fvisibility=hidden if default configure build is requested
(fix of commit c9964cfc0)

If --disable-shared and --enable-static are not passed to configure
then build generates only shared libraries, thus the internal symbols
visibility could be restricted.

* configure.ac [$enable_shared="" && $enable_static!=yes
|| $enable_shared=yes && $enable_static==""] (GC_DLL): Define AC macro.
* configure.ac [($enable_shared="" && $enable_static!=yes
|| $enable_shared=yes && $enable_static=="") && $GCC=yes
&& $ac_cv_fvisibility_hidden=yes] (CFLAGS): Add
-DGC_VISIBILITY_HIDDEN_SET -fvisibility=hidden.
configure.ac