netsniff-ng: needs -fcommon for gcc10

[ci skip]
This commit is contained in:
Jürgen Buchmüller 2020-08-18 16:04:00 +02:00
parent 190bc2b5be
commit 07da2ce28e
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,8 @@ homepage="http://netsniff-ng.org/"
distfiles="http://pub.netsniff-ng.org/netsniff-ng/netsniff-ng-${version}.tar.gz"
checksum=0a7092937209585b361400493d81ea1123a529494203824c0cd8e95562072c5e
CFLAGS="-fcommon"
post_extract() {
vsed -i "s|/sbin|/bin|g" Makefile
}
@ -24,6 +26,9 @@ pre_configure() {
export NACL_LIB_DIR=${XBPS_CROSS_BASE}/usr/lib
}
do_build() {
make ${makejobs} CC="${CC}" LD="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
}
pre_install() {
vmkdir usr/bin