helpersdir=$(libexecdir)/gstreamer-$(GST_API_VERSION)
gst_plugin_scanner_SOURCES = gst-plugin-scanner.c
-gst_plugin_scanner_CFLAGS = $(GST_OBJ_CFLAGS)
+gst_plugin_scanner_CFLAGS = $(GST_OBJ_CFLAGS) -fPIE
gst_plugin_scanner_LDADD = $(GST_OBJ_LIBS)
+gst_plugin_scanner_LDFLAGS = -pie
if HAVE_PTP
helpers_PROGRAMS += gst-ptp-helper
gst_ptp_helper_SOURCES = gst-ptp-helper.c
-gst_ptp_helper_CFLAGS = $(GST_OBJ_CFLAGS) $(GIO_CFLAGS)
+gst_ptp_helper_CFLAGS = $(GST_OBJ_CFLAGS) $(GIO_CFLAGS) -fPIE
gst_ptp_helper_LDADD = $(GST_OBJ_LIBS) $(GIO_LIBS) $(CAP_LIBS)
+gst_ptp_helper_LDFLAGS = -pie
endif
install-exec-hook: install-helpersPROGRAMS
gst-typefind-@GST_API_VERSION@
gst_inspect_@GST_API_VERSION@_SOURCES = gst-inspect.c tools.h
-gst_inspect_@GST_API_VERSION@_CFLAGS = $(GST_OBJ_CFLAGS)
+gst_inspect_@GST_API_VERSION@_CFLAGS = $(GST_OBJ_CFLAGS) -fPIE
gst_inspect_@GST_API_VERSION@_LDADD = $(GST_OBJ_LIBS)
+gst_inspect_@GST_API_VERSION@_LDFLAGS = -pie
gst_typefind_@GST_API_VERSION@_SOURCES = gst-typefind.c tools.h
-gst_typefind_@GST_API_VERSION@_CFLAGS = $(GST_OBJ_CFLAGS)
+gst_typefind_@GST_API_VERSION@_CFLAGS = $(GST_OBJ_CFLAGS) -fPIE
gst_typefind_@GST_API_VERSION@_LDADD = $(GST_OBJ_LIBS)
+gst_typefind_@GST_API_VERSION@_LDFLAGS = -pie
if !GST_DISABLE_PARSE
bin_PROGRAMS += gst-launch-@GST_API_VERSION@
gst_launch_@GST_API_VERSION@_SOURCES = gst-launch.c tools.h
-gst_launch_@GST_API_VERSION@_CFLAGS = $(GST_OBJ_CFLAGS)
+gst_launch_@GST_API_VERSION@_CFLAGS = $(GST_OBJ_CFLAGS) -fPIE
gst_launch_@GST_API_VERSION@_LDADD = $(GST_OBJ_LIBS)
+gst_launch_@GST_API_VERSION@_LDFLAGS = -pie
endif
manpages = \