-
Notifications
You must be signed in to change notification settings - Fork 197
Open
Description
I think there is no need to export all symbols when building a static lib with clang. Hence I suggest to change the following
#elif defined(_GNUC_)
# define LIBDEFLATE_EXPORT_SYM _attribute_((visibility("default")))
#else
# define LIBDEFLATE_EXPORT_SYM
#endif
to something like
#elif defined(_GNUC_) || defined(_clang_)
# if defined(LIBDEFLATE_DLL)
# define LIBDEFLATE_EXPORT_SYM _attribute_((visibility("default")))
# else
# define LIBDEFLATE_EXPORT_SYM _attribute_((visibility("hidden")))
# endif
#else
# define LIBDEFLATE_EXPORT_SYM
#endif
maybe then LIBDEFLATE_DLL should be renamed to something like LIBDEFLATE_SHARED.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels