summaryrefslogtreecommitdiffstats
path: root/ftp/ncftp/PRE_BUILD
blob: 98e7bad939c9f3cdad4b14737238c01c2cbc5b8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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