aboutsummaryrefslogtreecommitdiffstats
path: root/caputils
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-07-04 10:22:33 -0700
committerGuy Harris <guy@alum.mit.edu>2014-07-04 17:23:01 +0000
commit09511c2f62b4e77a50b955eab4bb5f2fb720ff6c (patch)
treef316bba050b5a1fe28d6a79bf697e7ab1094b1d4 /caputils
parentc7a6e6fa130611941a5d05e7646d7c38d78b2d0a (diff)
Build libcaputils PIE, so it can be linked with dumpcap when it's built PIE.
Change-Id: Ic1a64252e913f668676a3d8b69c10cc4789156b3 Reviewed-on: https://code.wireshark.org/review/2854 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'caputils')
-rw-r--r--caputils/Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/caputils/Makefile.am b/caputils/Makefile.am
index ad0326f5a5..fe3d5735e0 100644
--- a/caputils/Makefile.am
+++ b/caputils/Makefile.am
@@ -45,7 +45,13 @@ libcaputils_a_SOURCES = \
$(CAPUTILS_SRC) \
$(noinst_HEADERS)
-libcaputils_a_CFLAGS = $(AM_CLEAN_CFLAGS)
+#
+# This is used to build dumpcap, and dumpcap is, if possible, built as
+# a position-independent executable (for address space layout randomization,
+# as it might be running with extra privileges), so this library needs
+# to be built that way as well.
+#
+libcaputils_a_CFLAGS = $(AM_CLEAN_CFLAGS) $(PIE_CFLAGS)
libcaputils_a_DEPENDENCIES =