diff options
author | David Spencer <baildon.research@googlemail.com> | 2015-12-29 21:41:20 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-17 09:40:16 +0700 |
commit | d2632a39d3434a054924290b65b3d13ca8a06656 (patch) | |
tree | 856050630430c737ebfbc60e476e8f156fed5d6c /network | |
parent | b82a1793aabea699a211d401b5db7c18d00bbb51 (diff) |
network/masscan: Fixed build with gcc-5.3.0.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Diffstat (limited to 'network')
-rw-r--r-- | network/masscan/masscan.SlackBuild | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/network/masscan/masscan.SlackBuild b/network/masscan/masscan.SlackBuild index e8c68bbc85ce..39c38c783799 100644 --- a/network/masscan/masscan.SlackBuild +++ b/network/masscan/masscan.SlackBuild @@ -69,6 +69,10 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# gcc-5 fixes thanks to Arch Linux +sed -i "s|#elif defined(__GNUC__) && (__GNUC__ == 4)|#elif defined(__GNUC__)|" src/string_s.h +sed -i -r "s|(CFLAGS )=|\1+=|g" Makefile + make make install DESTDIR=$PKG install -pDm644 doc/masscan.8 $PKG/usr/man/man8/masscan.8 |