autofs-5.1.1 - fix Makefile linking dependencies From: Ian Kent The LDFLAGS is not specified in some Makefile rules and is placed too early in the command line on others. Signed-off-by: Ian Kent --- CHANGELOG | 1 + Makefile.rules | 2 +- daemon/Makefile | 2 +- modules/Makefile | 16 ++++++++-------- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 8164ea9..1ef65ea 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -45,6 +45,7 @@ - fix use-after-free in st_queue_handler(). - log pipe read errors. - fix handle_mounts() termination condition check. +- fix Makefile linking dependencies. 21/04/2015 autofs-5.1.1 ======================= diff --git a/Makefile.rules b/Makefile.rules index 0754a00..6fa3e02 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -67,5 +67,5 @@ LIBS += $(LIBNSL) $(CC) $(CFLAGS) -S $< .c.so: - $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) -o $*.so $< $(AUTOFS_LIB) $(LIBS) + $(CC) $(SOLDFLAGS) $(CFLAGS) -o $*.so $< $(LDFLAGS) $(AUTOFS_LIB) $(LIBS) $(STRIP) $*.so diff --git a/daemon/Makefile b/daemon/Makefile index e13688d..a455c68 100644 --- a/daemon/Makefile +++ b/daemon/Makefile @@ -30,7 +30,7 @@ endif all: automount automount: $(OBJS) $(AUTOFS_LIB) - $(CC) $(LDFLAGS) $(DAEMON_LDFLAGS) -o automount $(OBJS) $(AUTOFS_LIB) $(LIBS) + $(CC) $(DAEMON_LDFLAGS) -o automount $(OBJS) $(LDFLAGS) $(AUTOFS_LIB) $(LIBS) $(STRIP) automount clean: diff --git a/modules/Makefile b/modules/Makefile index 237b70b..75dc509 100644 --- a/modules/Makefile +++ b/modules/Makefile @@ -109,16 +109,16 @@ amd_parse.tab.c amd_parse.tab.h: amd_parse.y amd_parse.tab.o: amd_parse.tab.c amd_parse.tab.h parse_amd.so: parse_amd.c amd_parse.tab.o amd_tok.o - $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) -o parse_amd.so \ - parse_amd.c amd_parse.tab.o amd_tok.o $(AUTOFS_LIB) $(LIBS) + $(CC) $(SOLDFLAGS) $(CFLAGS) -o parse_amd.so \ + parse_amd.c amd_parse.tab.o amd_tok.o $(LDFLAGS) $(AUTOFS_LIB) $(LIBS) $(STRIP) parse_amd.so # # Ad hoc compilation rules for modules which need auxilliary libraries # lookup_hesiod.so: lookup_hesiod.c - $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) $(HESIOD_FLAGS) -o lookup_hesiod.so \ - lookup_hesiod.c $(AUTOFS_LIB) $(LIBHESIOD) $(LIBRESOLV) $(LIBS) + $(CC) $(SOLDFLAGS) $(CFLAGS) $(HESIOD_FLAGS) -o lookup_hesiod.so \ + lookup_hesiod.c $(LDFLAGS) $(AUTOFS_LIB) $(LIBHESIOD) $(LIBRESOLV) $(LIBS) $(STRIP) lookup_hesiod.so cyrus-sasl.o: cyrus-sasl.c @@ -128,13 +128,13 @@ cyrus-sasl-extern.o: cyrus-sasl-extern.c $(CC) $(CFLAGS) $(LDAP_FLAGS) -c $< lookup_ldap.so: lookup_ldap.c dclist.o base64.o $(SASL_OBJ) - $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) $(LDAP_FLAGS) -o lookup_ldap.so \ + $(CC) $(SOLDFLAGS) $(CFLAGS) $(LDAP_FLAGS) -o lookup_ldap.so \ lookup_ldap.c dclist.o base64.o $(SASL_OBJ) \ - $(AUTOFS_LIB) $(LIBLDAP) $(LIBRESOLV) $(LIBS) + $(LDFLAGS) $(AUTOFS_LIB) $(LIBLDAP) $(LIBRESOLV) $(LIBS) $(STRIP) lookup_ldap.so mount_nfs.so: mount_nfs.c replicated.o - $(CC) $(LDFLAGS) $(SOLDFLAGS) $(CFLAGS) -o mount_nfs.so \ - mount_nfs.c replicated.o $(AUTOFS_LIB) $(LIBS) + $(CC) $(SOLDFLAGS) $(CFLAGS) -o mount_nfs.so \ + mount_nfs.c replicated.o $(LDFLAGS) $(AUTOFS_LIB) $(LIBS) $(STRIP) mount_nfs.so