Commit 5ade6248ff6716bdb57ca9f602c9c2cc1c7e6e2b

Steffen Jaeckel 2017-08-25T13:00:34

always use the same order of objects to create the library

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)