From 09511c2f62b4e77a50b955eab4bb5f2fb720ff6c Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 4 Jul 2014 10:22:33 -0700 Subject: 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 --- caputils/Makefile.am | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'caputils') 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 = -- cgit v1.2.1