From e66c2a24f3b3b0c3d8c77579c82c4769bee3f4a9 Mon Sep 17 00:00:00 2001 From: Vadim Lebedev Date: Mon, 18 Jul 2022 19:12:37 +0200 Subject: [PATCH] Add SONAME to .so file --- libarchive/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarchive/Makefile b/libarchive/Makefile index b7e1fb2..2e33780 100644 --- a/libarchive/Makefile +++ b/libarchive/Makefile @@ -17,7 +17,7 @@ _libarchive_wrap.o: _libarchive_wrap.c # ${CXX} -c ${CFLAGS} -fPIC $$(python${PYVER}-config --cflags) -DPyUnicode_AS_STRING=PyUnicode_AS_DATA _libarchive_wrap.cxx __libarchive.so: _libarchive_wrap.o - ${CC} _libarchive_wrap.o -shared $$(python${PYVER}-config --ldflags) -o __libarchive.so ${LIBS} + ${CC} _libarchive_wrap.o -shared $$(python${PYVER}-config --ldflags) -Wl,-soname=__libarchive.so -o __libarchive.so ${LIBS} clean: rm -f *.o *.so *.pyc \ No newline at end of file