From 5aa191626e4ae317b48561a3b41d8ee01b90611b Mon Sep 17 00:00:00 2001 From: Vadim Lebedev Date: Mon, 1 Aug 2022 14:08:07 +0200 Subject: [PATCH] Fixes to build instruction --- libarchive/Makefile | 5 +++-- setup.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libarchive/Makefile b/libarchive/Makefile index f3945f3..1999128 100644 --- a/libarchive/Makefile +++ b/libarchive/Makefile @@ -1,6 +1,6 @@ CFLAGS = -g -INCLUDE = -I/usr/include -I. -LIBS = -larchive +INCLUDE = -I/usr/local/include -I/usr/include -I. +LIBS = -L /usr/local/lib -larchive #DEFINES = -DPyUnicode_AS_STRING=PyUnicode_AS_DATA PYVER ?= 3.9 @@ -17,6 +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 + echo INCLUDE=$INCLUDE LIBS=$LIBS ${CC} _libarchive_wrap.o -shared $$(python${PYVER}-config --ldflags) -Wl,-soname=__libarchive.so -o __libarchive.so ${LIBS} clean: diff --git a/setup.py b/setup.py index 724479c..8703f5f 100644 --- a/setup.py +++ b/setup.py @@ -90,7 +90,7 @@ else: __libarchive = Extension( name='libarchive.__libarchive', - sources=['libarchive/_libarchive_wrap.c'], + sources=['libarchive/_libarchive.i', 'libarchive/_libarchive_wrap.c'], libraries=['archive'], extra_compile_args=extra_compile_args, extra_link_args=extra_link_args,