mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-24 12:01:59 +01:00
net-libs/gnutls: Sync with Gentoo
It's from Gentoo commit d14233d72e7cdc4e93acb83100118500f8822203.
This commit is contained in:
parent
88af8752d7
commit
514de38d31
@ -81,6 +81,13 @@ 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
|
||||
}
|
||||
@ -101,8 +108,6 @@ multilib_src_configure() {
|
||||
# GNU-stack (as doesn't support that) and when that's removed ld
|
||||
# complains about duplicate symbols
|
||||
[[ ${CHOST} == *-darwin* ]] && libconf+=( --disable-hardware-acceleration )
|
||||
# should be gone on next release, for gnulib memset_s breakage
|
||||
[[ ${CHOST} == *-solaris* ]] && append-cppflags -D__STDC_WANT_LIB_EXT1__=1
|
||||
|
||||
# -fanalyzer substantially slows down the build and isn't useful for
|
||||
# us. It's useful for upstream as it's static analysis, but it's not
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user