Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8050691

Browse files
committed
quick setup to build the existing python 2.6 zlib module using a makefile ( didn't want to mess with the distutils for now ). This allows first modifications to make it multithreading compatible
1 parent 8cfa254 commit 8050691

File tree

3 files changed

+1051
-0
lines changed

3 files changed

+1051
-0
lines changed

makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
mod/zlibmodule.o: mod/zlibmodule.c
3+
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c $< -o $@
4+
5+
mod/zlib.so: mod/zlibmodule.o
6+
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions $^ -o $@
7+
8+
all: mod/zlib.so
9+
10+
clean:
11+
-rm mod/*.so
12+
-rm mod/*.o

mod/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)