--- exports/Makefile.orig 2019-08-11 21:23:27 UTC +++ exports/Makefile @@ -184,7 +184,7 @@ else endif $(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \ -Wl,--whole-archive $< -Wl,--no-whole-archive \ - $(FEXTRALIB) $(EXTRALIB) + -Wl,-soname,$(LIBSONAME) $(FEXTRALIB) $(EXTRALIB) $(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK. rm -f linktest