diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-05-10 16:20:48 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-05-10 16:21:53 +0200 |
commit | 1d1f3295d822b7abd5573073959e912f05adf9ae (patch) | |
tree | f85f2364a348f78a29274264bb89a23381537111 /net-analyzer/thcrut/files | |
parent | dev-libs/libpcre2: Bump to version 10.35 (diff) | |
download | gentoo-1d1f3295d822b7abd5573073959e912f05adf9ae.tar.gz gentoo-1d1f3295d822b7abd5573073959e912f05adf9ae.tar.bz2 gentoo-1d1f3295d822b7abd5573073959e912f05adf9ae.zip |
net-analyzer/thcrut: Fix building with CFLAGS=-fno-common
- Respect CFLAGS
- Remove unused declarations of ip_tcp_sync_addr
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Closes: https://bugs.gentoo.org/show_bug.cgi?id=722138
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer/thcrut/files')
-rw-r--r-- | net-analyzer/thcrut/files/thcrut-1.2.5-flags.patch | 11 | ||||
-rw-r--r-- | net-analyzer/thcrut/files/thcrut-1.2.5-fno-common.patch | 20 |
2 files changed, 31 insertions, 0 deletions
diff --git a/net-analyzer/thcrut/files/thcrut-1.2.5-flags.patch b/net-analyzer/thcrut/files/thcrut-1.2.5-flags.patch new file mode 100644 index 000000000000..0a6bcaf4ebce --- /dev/null +++ b/net-analyzer/thcrut/files/thcrut-1.2.5-flags.patch @@ -0,0 +1,11 @@ +--- a/configure.in ++++ b/configure.in +@@ -23,7 +23,7 @@ + dnl + dnl Use these compiler flags if we have gcc. + dnl +-if test $ac_cv_prog_gcc = yes; then ++if test $ac_cv_prog_gcc_not_on_gentoo = yes; then + CCOPTS='-O2 -Wall' + CFLAGS="$CCOPTS" + fi diff --git a/net-analyzer/thcrut/files/thcrut-1.2.5-fno-common.patch b/net-analyzer/thcrut/files/thcrut-1.2.5-fno-common.patch new file mode 100644 index 000000000000..a934048f341e --- /dev/null +++ b/net-analyzer/thcrut/files/thcrut-1.2.5-fno-common.patch @@ -0,0 +1,20 @@ +--- a/src/discover_dispatch.c ++++ b/src/discover_dispatch.c +@@ -81,7 +81,6 @@ + + unsigned short ip_tcp_sync_chksum; + unsigned short ip_tcp_fp_chksum; +-struct sockaddr_in ip_tcp_sync_addr; + static dispatch_func_recv_t dispatch_funcs[] = { + dis_recvdummy, + dis_recv, +--- a/src/discover_main.c ++++ b/src/discover_main.c +@@ -22,7 +22,6 @@ + extern struct _opt opt; + extern char ip_tcp_sync[]; + +-struct sockaddr_in ip_tcp_sync_addr; + int rawsox; + + #define DFL_HOSTS_PARALLEL (5000) |