Blame SOURCES/autofs-5.1.8-fix-fedfs-build-flags.patch

96dc52
autofs-5.1.8 - fix fedfs build flags
96dc52
96dc52
From: Ian Kent <raven@themaw.net>
96dc52
96dc52
Dynamic executables should be compiled with -fPIE and linked with -pie.
96dc52
96dc52
Signed-off-by: Ian Kent <raven@themaw.net>
96dc52
---
96dc52
 CHANGELOG      |    1 +
96dc52
 fedfs/Makefile |    4 ++--
96dc52
 2 files changed, 3 insertions(+), 2 deletions(-)
96dc52
96dc52
--- autofs-5.1.7.orig/CHANGELOG
96dc52
+++ autofs-5.1.7/CHANGELOG
96dc52
@@ -81,6 +81,7 @@
96dc52
 - eliminate some more alloca usage.
96dc52
 - use default stack size for threads.
96dc52
 - fix kernel mount status notification.
96dc52
+- fix fedfs build flags.
96dc52
 
96dc52
 25/01/2021 autofs-5.1.7
96dc52
 - make bind mounts propagation slave by default.
96dc52
--- autofs-5.1.7.orig/fedfs/Makefile
96dc52
+++ autofs-5.1.7/fedfs/Makefile
96dc52
@@ -23,12 +23,12 @@ LDFLAGS += -rdynamic
96dc52
 all: mount.fedfs fedfs-map-nfs4
96dc52
 
96dc52
 mount.fedfs: $(mount_fedfs_OBJ) $(fedfs-getsrvinfo_OBJ) $(HDRS)
96dc52
-	$(CC) -o mount.fedfs \
96dc52
+	$(CC) $(DAEMON_LDFLAGS) -o mount.fedfs \
96dc52
 	       $(mount_fedfs_OBJ) $(fedfs-getsrvinfo_OBJ) \
96dc52
 	       $(LDFLAGS) $(LIBRESOLV) $(LIBS)
96dc52
 
96dc52
 fedfs-map-nfs4: $(fedfs-map-nfs4_OBJ) $(fedfs-getsrvinfo_OBJ) $(HDRS)
96dc52
-	$(CC) -o fedfs-map-nfs4 \
96dc52
+	$(CC) $(DAEMON_LDFLAGS) -o fedfs-map-nfs4 \
96dc52
 	       $(fedfs-map-nfs4_OBJ) $(fedfs-getsrvinfo_OBJ) \
96dc52
 	       $(LDFLAGS) $(LIBRESOLV) $(LIBS)
96dc52