cairo-dock-plugins: needs -fcommon for gcc10

[ci skip]
This commit is contained in:
Jürgen Buchmüller 2020-08-18 16:46:10 +02:00
parent 2f619d05e8
commit 2caf22e6a6

View file

@ -16,15 +16,17 @@ license="GPL-2"
homepage="https://launchpad.net/cairo-dock"
distfiles="http://launchpad.net/cairo-dock-plug-ins/${version%.?}/${version}/+download/cairo-dock-plug-ins-${version}.tar.gz"
checksum=e09b8e600398749d1f74b26e645b477a1844a3eea02fcadd6877935da3f8639e
case "$XBPS_TARGET_MACHINE" in
*-musl) CFLAGS+="-D_GNU_SOURCE" ;;
esac
patch_args="-Np1"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" python-devel python3-devel"
fi
CFLAGS="-fcommon"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
CFLAGS+=" -D_GNU_SOURCE"
fi
pre_configure() {
# Disable Logout plugin
echo -n > logout/CMakeLists.txt