MEGAcmd: build with -std=c++17

Otherwise, link with experimental/filesystem and failed to link.
This commit is contained in:
Đoàn Trần Công Danh 2023-09-09 21:01:07 +07:00
parent e3cd4cd380
commit 3028fd4e66

View file

@ -1,7 +1,7 @@
# Template file for 'MEGAcmd'
pkgname=MEGAcmd
version=1.4.0
revision=1
revision=2
build_style=gnu-configure
hostmakedepends="autoconf-archive autogen gettext automake libtool pkg-config"
makedepends="MEGAsdk-devel readline-devel pcre-devel"
@ -12,15 +12,12 @@ homepage="https://github.com/meganz/MEGAcmd"
distfiles="https://github.com/meganz/MEGAcmd/archive/${version}_Linux.tar.gz"
checksum=2a3626a9f1d22303fe2123f984a8ecf3779d6d59ac6c67c1bf43c2423dcb832d
replaces="megacmd>=0"
CXXFLAGS=-std=c++17
if [ "$CROSS_BUILD" ]; then
configure_args="--with-libtool-sysroot=${XBPS_CROSS_BASE}"
fi
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
LDFLAGS+=" -latomic"
fi
pre_configure() {
./autogen.sh
}