SHA256
1
0
forked from pool/wireshark
wireshark/wireshark-suidflags.patch
Marcus Meissner d353196adb Accepting request 144930 from home:dimstar:branches:network:utilities
- Add wireshark-suidflags.patch: Allow to pass SUID_{C,LD}FLAGS to
  introduce -fPIE -pie as needed for suid binaries
- Add libtool BuildRequires and call to autoreconf, as above patch
  touches the build system.
- Export SUID_{C,LD}FLAGS with appropriate flags.

OBS-URL: https://build.opensuse.org/request/show/144930
OBS-URL: https://build.opensuse.org/package/show/network:utilities/wireshark?expand=0&rev=75
2012-12-10 10:13:21 +00:00

15 lines
474 B
Diff

Index: wireshark-1.8.4/Makefile.am
===================================================================
--- wireshark-1.8.4.orig/Makefile.am
+++ wireshark-1.8.4/Makefile.am
@@ -487,7 +487,8 @@ dumpcap_LDADD = \
@NSL_LIBS@ \
@CORESERVICES_FRAMEWORKS@ \
@LIBCAP_LIBS@
-dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS)
+dumpcap_CFLAGS = $(AM_CLEAN_CFLAGS) $(SUID_CFLAGS)
+dumpcap_LDFLAGS = $(SUID_LDFLAGS)
# Common headers
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/wiretap \