Skip to content

Commit

Permalink
network/ngrep: fix to compile with new GCC
Browse files Browse the repository at this point in the history
Signed-off-by: Arkadiusz Drabczyk <[email protected]>
  • Loading branch information
ardrabczyk committed Aug 2, 2024
1 parent 93bfd8a commit d5201fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions network/ngrep/ngrep.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
SLKCFLAGS="-O2 -fPIC -Wno-error=implicit-function-declaration"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
Expand Down Expand Up @@ -92,7 +92,7 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-ipv6=${NGREP_IPV6} \
--build=$ARCH-slackware-linux

make
CFLAGS="$SLKCFLAGS" make
make install DESTDIR=$PKG mandir=/usr/man

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
Expand Down

0 comments on commit d5201fa

Please sign in to comment.