commit 4435cba93937916655eb87098c7b59b8130fad27
parent dfea845873e77743c9fe85ef9d23b7273f67ff84
Author: vaplv <vaplv@free.fr>
Date: Mon, 11 Apr 2022 21:33:36 +0200
Fix the link command of the librsys.so library
It makes a difference where in the command the objects and listed. The
linker searches and processes them in order they are defined. To avoid
link issues, shared objects are listed after all objects.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -46,7 +46,7 @@ build_library: $(DEP)
$(OBJ): config.mk
librsys.so: $(OBJ)
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ)
+ $(CC) $(CFLAGS) -o $@ $(OBJ) $(LDFLAGS)
.SUFFIXES: .c .d .o
.c.d: