abinfo "Arch Linux: Tweaking Makefile to use system compiler and linker flags ..."
sed -e '/CXXFLAGS=/d' \
    -e '/LDFLAGS=/d' \
    -i "$SRCDIR"/unrar/makefile

abinfo "Preparing a separate source root for runtime library ..."
cp -rv "$SRCDIR"/{,lib}unrar

abinfo "Arch Linux: Appending -pthread to LDFLAGS to fix build ..."
export LDFLAGS="${LDFLAGS} -pthread"
