Skip to content

Commit 19f4f74

Browse files
committed
Setup static python modules
1 parent fc8b401 commit 19f4f74

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Modules/Setup

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ _elementtree _elementtree.c
162162
pyexpat pyexpat.c
163163

164164
# hashing builtins
165-
_blake2 _blake2/blake2module.c _blake2/blake2b_impl.c _blake2/blake2s_impl.c
165+
_blake2 _blake2/blake2module.c _blake2/blake2b_impl.c _blake2/blake2s_impl.c -l:libb2.a
166166
_md5 md5module.c
167167
_sha1 sha1module.c
168168
_sha256 sha256module.c
@@ -193,34 +193,34 @@ termios termios.c
193193

194194
# Modules with UNIX dependencies that require external libraries
195195

196-
_crypt _cryptmodule.c -lcrypt
196+
_crypt _cryptmodule.c -l:libcrypt.a
197197
#nis nismodule.c -I/usr/include/tirpc -lnsl -ltirpc
198198

199199
# Modules that require external libraries.
200200

201-
_bz2 _bz2module.c -lbz2
202-
_ctypes _ctypes/_ctypes.c _ctypes/callbacks.c _ctypes/callproc.c _ctypes/stgdict.c _ctypes/cfield.c -ldl -lffi -DHAVE_FFI_PREP_CIF_VAR -DHAVE_FFI_PREP_CLOSURE_LOC -DHAVE_FFI_CLOSURE_ALLOC
203-
The _dbm module supports NDBM, GDBM with compat module, and Berkeley DB.
204-
_dbm _dbmmodule.c -lgdbm_compat -DUSE_GDBM_COMPAT
201+
_bz2 _bz2module.c -l:libbz2.a
202+
_ctypes _ctypes/_ctypes.c _ctypes/callbacks.c _ctypes/callproc.c _ctypes/stgdict.c _ctypes/cfield.c -ldl -l:libffi.a -DHAVE_FFI_PREP_CIF_VAR -DHAVE_FFI_PREP_CLOSURE_LOC -DHAVE_FFI_CLOSURE_ALLOC
203+
# The _dbm module supports NDBM, GDBM with compat module, and Berkeley DB.
204+
_dbm _dbmmodule.c -l:libgdbm_compat.a -DUSE_GDBM_COMPAT
205205
_gdbm _gdbmmodule.c -l:libgdbm.a
206206
_lzma _lzmamodule.c -l:liblzma.a
207207
_uuid _uuidmodule.c -l:libuuid.a
208208
zlib zlibmodule.c -l:libz.a
209209

210210
# The readline module also supports libeditline (-leditline).
211211
# Some systems may require -ltermcap or -ltermlib.
212-
readline readline.c -l:libreadline.a -l:libtermcap.a
212+
readline readline.c -l:libreadline.a
213213

214214
# OpenSSL bindings
215215
#_ssl _ssl.c $(OPENSSL_INCLUDES) $(OPENSSL_LDFLAGS) $(OPENSSL_LIBS)
216216
#_hashlib _hashopenssl.c $(OPENSSL_INCLUDES) $(OPENSSL_LDFLAGS) -lcrypto
217217

218218
# To statically link OpenSSL:
219219
_ssl _ssl.c $(OPENSSL_INCLUDES) $(OPENSSL_LDFLAGS) \
220-
-l:libssl.a -Wl,--exclude-libs,libssl.a \
221-
-l:libcrypto.a -Wl,--exclude-libs,libcrypto.a
220+
-l:libssl.a \
221+
-l:libcrypto.a
222222
_hashlib _hashopenssl.c $(OPENSSL_INCLUDES) $(OPENSSL_LDFLAGS) \
223-
-l:libcrypto.a -Wl,--exclude-libs,libcrypto.a
223+
-l:libcrypto.a
224224

225225
# The _tkinter module.
226226
#
@@ -238,7 +238,7 @@ _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT $(TCLTK_INCLUDES) $(TCLTK_LIBS) \
238238
# *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
239239
# -L/usr/local/lib \
240240
# *** Uncomment and edit to reflect where your Tcl/Tk headers are:
241-
-I/usr/include/tcl8.6 \
241+
# -I/usr/include/tcl8.6 \
242242
# *** Uncomment and edit to reflect where your X11 header files are:
243243
# -I/usr/X11R6/include \
244244
# *** Or uncomment this for Solaris:
@@ -253,7 +253,7 @@ _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT $(TCLTK_INCLUDES) $(TCLTK_LIBS) \
253253
# *** Uncomment and edit for TOGL extension only:
254254
# -DWITH_TOGL togl.c \
255255
# *** Uncomment and edit to reflect your Tcl/Tk versions:
256-
-ltk8.6 -ltcl8.6 \
256+
-l:libtk8.6.a -l:libtcl8.6.a \
257257
# *** Uncomment and edit to reflect where your X11 libraries are:
258258
# -L/usr/X11R6/lib \
259259
# *** Or uncomment this for Solaris:
@@ -263,11 +263,11 @@ _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT $(TCLTK_INCLUDES) $(TCLTK_LIBS) \
263263
# *** Uncomment for AIX:
264264
# -lld \
265265
# *** Always uncomment this; X11 libraries to link with:
266-
-lX11
266+
-l:libX11.a -l:libxcb.a -l:libXss.a -l:libfontconfig.a -l:libXft.a -l:libXext.a -l:libXrandr.a -l:libXau.a -l:libXrender.a -l:libXdmcp.a -l:libfreetype.a -l:libexpat.a -l:libpng.a -l:libharfbuzz.a -l:libX11.a -l:libxcb.a
267267

268268
# Some system have -lcurses
269-
_curses -l:libncurses.a -l:libncursesw.a -l:libtermcap.a _cursesmodule.c
270-
_curses_panel -l:libpanel.a -l:libncurses.a _curses_panel.c
269+
_curses -l:libncursesw.a _cursesmodule.c
270+
_curses_panel -l:libpanelw.a -l:libncursesw.a _curses_panel.c
271271

272272
# macOS specific module, needs SystemConfiguration and CoreFoundation framework
273273
# _scproxy _scproxy.c

0 commit comments

Comments
 (0)