always use the same order of objects to create the library
diff --git a/makefile.shared b/makefile.shared
index 7d2311f..8842dc9 100644
--- a/makefile.shared
+++ b/makefile.shared
@@ -47,8 +47,10 @@ objs: $(OBJECTS)
.c.o:
$(LTCOMPILE) $(CFLAGS) $(LDFLAGS) -o $@ -c $<
+LOBJECTS = $(OBJECTS:.o=.lo)
+
$(LIBNAME): $(OBJECTS)
- $(LT) --mode=link --tag=CC $(CC) $(LDFLAGS) *.lo -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION_SO)
+ $(LT) --mode=link --tag=CC $(CC) $(LDFLAGS) $(LOBJECTS) -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION_SO)
install: $(LIBNAME)
install -d $(LIBPATH)