network/netdiscover: Add -fcommon to CFLAGS.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dave Woodfall 2022-03-02 05:27:32 +00:00 committed by Willy Sudiarto Raharjo
parent f17df731d1
commit 521e30bc4e
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -23,7 +23,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=netdiscover
VERSION=${VERSION:-053dda2}
COMMIT=${COMMIT:-053dda2f3a8cdb749f8100735d78af427aa417b0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -81,7 +81,7 @@ sed -i -e 's:share/man:man:' CMakeLists.txt
mkdir -p build
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS -fcommon" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release ..