diff options
Diffstat (limited to 'ftp/ncftp/PRE_BUILD')
-rwxr-xr-x | ftp/ncftp/PRE_BUILD | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ftp/ncftp/PRE_BUILD b/ftp/ncftp/PRE_BUILD index 64ffc4f977..98e7bad939 100755 --- a/ftp/ncftp/PRE_BUILD +++ b/ftp/ncftp/PRE_BUILD @@ -1,6 +1,11 @@ default_pre_build && cd "$SOURCE_DIRECTORY" && +# Fix compilation with GCC 10+ +# See https://bugs.gentoo.org/722550 where I found the fix +message "${MESSAGE_COLOR}Fixing compilationg for GCC 10+...${DEFAULT_COLOR}" && +patch -p1 < "${SCRIPT_DIRECTORY}"/ncftp-3.2.6-fno-common.patch && + if [[ "$NCFTP_IPV6" == "y" ]]; then gzip -cd "$SOURCE_CACHE/$SOURCE2" | patch -p1 fi |