Browse Source

Fixes to build instruction

test_fixup
Vadim Lebedev 2 years ago
parent
commit
5aa191626e
2 changed files with 4 additions and 3 deletions
  1. +3
    -2
      libarchive/Makefile
  2. +1
    -1
      setup.py

+ 3
- 2
libarchive/Makefile View File

@@ -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:

+ 1
- 1
setup.py View File

@@ -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,


Loading…
Cancel
Save