fuse/fusermount-compile-as-pie.patch

15 lines
563 B
Diff
Raw Normal View History

Index: fuse-2.8.7/util/Makefile.am
===================================================================
--- fuse-2.8.7.orig/util/Makefile.am 2012-01-25 19:13:34.000000000 +0100
+++ fuse-2.8.7/util/Makefile.am 2012-01-25 19:16:02.231609707 +0100
@@ -7,6 +7,9 @@ noinst_PROGRAMS = mount.fuse
fusermount_SOURCES = fusermount.c
fusermount_LDADD = ../lib/mount_util.lo
fusermount_CPPFLAGS = -I../lib
+fusermount_CFLAGS = -fPIE $(AM_CFLAGS)
+fusermount_LDFLAGS = -pie $(AM_LDFLAGS)
+
mount_fuse_SOURCES = mount.fuse.c
ulockmgr_server_SOURCES = ulockmgr_server.c