diff options
author | Fabian Groffen <grobian@gentoo.org> | 2024-08-21 19:09:36 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2024-08-21 19:10:47 +0200 |
commit | 54f9c1fafdc7a60435ef47b8a3c26459ced96256 (patch) | |
tree | 581d2cfc33c195a3384bfd48ba8d427cb87590f7 /net-libs | |
parent | dev-util/idea-community: drop 2024.2.0.1 (diff) | |
download | gentoo-54f9c1fafdc7a60435ef47b8a3c26459ced96256.tar.gz gentoo-54f9c1fafdc7a60435ef47b8a3c26459ced96256.tar.bz2 gentoo-54f9c1fafdc7a60435ef47b8a3c26459ced96256.zip |
net-libs/gnutls-3.8.7.1-r1: replace one gnulib hack for another (Solaris)
No longer need the previous hacks, but now need another to fix symbol
versioning problems.
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/gnutls/gnutls-3.8.7.1-r1.ebuild | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/net-libs/gnutls/gnutls-3.8.7.1-r1.ebuild b/net-libs/gnutls/gnutls-3.8.7.1-r1.ebuild index 74f6ffe49d3a..8dee2bec3d09 100644 --- a/net-libs/gnutls/gnutls-3.8.7.1-r1.ebuild +++ b/net-libs/gnutls/gnutls-3.8.7.1-r1.ebuild @@ -90,13 +90,6 @@ src_prepare() { # fails to compile in certain configurations sed -i -e 's/__APPLE__/__NO_APPLE__/' lib/system/certs.c || die - if [[ ${CHOST} == *-solaris* ]] ; then - # should be gone on next release, for gnulib memset_s breakage - append-cppflags -D__STDC_WANT_LIB_EXT1__=1 - # alloca usage, similar - sed -i -e '$a#include <alloca.h>' config.h.in || die - fi - # Use sane .so versioning on FreeBSD. #elibtoolize @@ -156,6 +149,12 @@ multilib_src_configure() { ) ECONF_SOURCE="${S}" econf "${libconf[@]}" "${myeconfargs[@]}" + + if [[ ${CHOST} == *-solaris* ]] ; then + # gnulib ends up defining its own pthread_mutexattr_gettype + # otherwise, which is causing versioning problems + echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >> config.h || die + fi } multilib_src_install_all() { |