Libraries need to come after the objects, for --as-needed to work. Signed-off-by: Sven Wegener <sven.wegener@xxxxxxxxxxx> --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- ipset.orig/Makefile +++ ipset/Makefile @@ -74,7 +74,7 @@ $(CC) $(CFLAGS) -DIPSET_VERSION=\"$(IPSET_VERSION)\" -DIPSET_LIB_DIR=\"$(IPSET_LIB_DIR)\" -c -o $@ $< ipset: ipset.o - $(CC) $(CFLAGS) -ldl -rdynamic -o $@ $^ + $(CC) $(CFLAGS) -rdynamic -o $@ $^ -ldl #Pooltypes ipset_%.o: ipset_%.c -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html