From 40db37d30b4d0172e33a5419365f999ee6e4827d Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Sun, 17 May 2015 21:11:04 +0100 Subject: [PATCH] Re-order linking for backend plugins to cope with ld --as-needed The shared libraries for DB4/curl/PostgreSQL should all come after the object file that uses them so that ld --as-needed can correctly pick up the required linkage. Fixes Debian bug #772433 --- Makefile.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index c572593..d23f50a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -86,13 +86,13 @@ keydctl: keydctl.o onak-conf.o ll.o log.o -o keydctl keydctl.o onak-conf.o ll.o log.o $(LIBS) libkeydb_db4.so: keydb_db4.o $(CORE_OBJS) - $(CC) $(LDFLAGS) -shared $(DB4LIBS) -o libkeydb_db4.so keydb_db4.o $(CORE_OBJS) + $(CC) $(LDFLAGS) -shared -o libkeydb_db4.so keydb_db4.o $(DB4LIBS) $(CORE_OBJS) libkeydb_hkp.so: keydb_hkp.o $(CORE_OBJS) - $(CC) $(LDFLAGS) -shared $(CURLLIBS) -o libkeydb_hkp.so keydb_hkp.o $(CORE_OBJS) + $(CC) $(LDFLAGS) -shared -o libkeydb_hkp.so keydb_hkp.o $(CURLLIBS) $(CORE_OBJS) libkeydb_pg.so: keydb_pg.o $(CORE_OBJS) - $(CC) $(LDFLAGS) -shared $(PQLIBS) -o libkeydb_pg.so keydb_pg.o $(CORE_OBJS) + $(CC) $(LDFLAGS) -shared -o libkeydb_pg.so keydb_pg.o $(PQLIBS) $(CORE_OBJS) libkeydb_%.so: keydb_%.o $(CORE_OBJS) $(CC) $(LDFLAGS) -shared -o $@ $< $(CORE_OBJS) -- 2.39.5