drbd-utils: needs -fcommon for gcc10

[ci skip]
This commit is contained in:
Jürgen Buchmüller 2020-08-18 17:24:49 +02:00
parent 3d505a0133
commit 40d1afc4fa
1 changed files with 13 additions and 11 deletions

View File

@ -5,17 +5,17 @@ revision=1
build_style=gnu-configure build_style=gnu-configure
build_helper="qemu" build_helper="qemu"
configure_args=" configure_args="
--sbindir=/usr/bin \ --sbindir=/usr/bin
--prefix=/usr \ --prefix=/usr
--exec-prefix=/usr \ --exec-prefix=/usr
--libexecdir=/usr/libexec \ --libexecdir=/usr/libexec
--with-distro=generic \ --with-distro=generic
--with-bashcompletion \ --with-bashcompletion
--with-udev \ --with-udev
--without-rgmanager \ --without-rgmanager
--without-pacemaker \ --without-pacemaker
--without-heartbeat \ --without-heartbeat
--without-83support \ --without-83support
--without-xen" --without-xen"
conf_files=" conf_files="
/etc/drbd.conf /etc/drbd.conf
@ -41,6 +41,8 @@ if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" drbd-utils" hostmakedepends+=" drbd-utils"
fi fi
CFLAGS="-fcommon"
pre_configure() { pre_configure() {
sed -i 's#/lib/drbd#/usr/lib/drbd#' drbd.spec.in sed -i 's#/lib/drbd#/usr/lib/drbd#' drbd.spec.in
NOCONFIGURE=1 ./autogen.sh NOCONFIGURE=1 ./autogen.sh