diff options
-rw-r--r-- | m4/slibtool.m4 | 1 | ||||
-rw-r--r-- | src/internal/slibtool_visibility_impl.h | 16 |
2 files changed, 9 insertions, 8 deletions
diff --git a/m4/slibtool.m4 b/m4/slibtool.m4 index 944ba0c..dab1e6a 100644 --- a/m4/slibtool.m4 +++ b/m4/slibtool.m4 @@ -679,3 +679,4 @@ AC_DEFUN([LT_PATH_AS],[]) AC_DEFUN([LT_PATH_LD],[]) AC_DEFUN([LT_PATH_NM],[]) AC_DEFUN([LT_PATH_RANLIB],[]) +AC_DEFUN([LT_CONFIG_LTDL_DIR],[]) diff --git a/src/internal/slibtool_visibility_impl.h b/src/internal/slibtool_visibility_impl.h index 2bdded0..44ab2dd 100644 --- a/src/internal/slibtool_visibility_impl.h +++ b/src/internal/slibtool_visibility_impl.h @@ -7,20 +7,20 @@ /* attribute not only redundant, but also tricky if not properly */ /* supported by the toolchain. */ /* */ -/* When targeting Midipix, __PE__, __dllexport and __dllimport are */ -/* always defined by the toolchain. Otherwise, the absnece of these */ -/* macros has been detected by sofort's ccenv.sh during ./configure, */ -/* and they have accordingly been added to CFLAGS_OS. */ +/* When targeting Midipix hosts, where elf-like visibility is fully */ +/* supported and may be detected via the __PE_VISIBILITY__ macro, */ +/* we utilize the attribute to render private symbols invisibile */ +/* to dlsym(), as well as reduce the size of the .gotstrs section. */ /**********************************************************************/ -#ifdef __PE__ +#if defined(__PE_VISIBILITY__) +#define slbt_hidden _ATTR_VISIBILITY_HIDDEN +#elif defined(__PE__) #define slbt_hidden -#else -#ifdef _ATTR_VISIBILITY_HIDDEN +#elif defined(_ATTR_VISIBILITY_HIDDEN) #define slbt_hidden _ATTR_VISIBILITY_HIDDEN #else #define slbt_hidden #endif -#endif #endif |