@@ -1118,16 +1118,6 @@ def detect_readline_curses(self):
1118
1118
if find_file ('readline/rlconf.h' , self .inc_dirs , []) is None :
1119
1119
do_readline = False
1120
1120
if do_readline :
1121
- if MACOS and os_release < 9 :
1122
- # In every directory on the search path search for a dynamic
1123
- # library and then a static library, instead of first looking
1124
- # for dynamic libraries on the entire path.
1125
- # This way a statically linked custom readline gets picked up
1126
- # before the (possibly broken) dynamic library in /usr/lib.
1127
- readline_extra_link_args = ('-Wl,-search_paths_first' ,)
1128
- else :
1129
- readline_extra_link_args = ()
1130
-
1131
1121
readline_libs = [readline_lib ]
1132
1122
if readline_termcap_library :
1133
1123
pass # Issue 7384: Already linked against curses or tinfo.
@@ -1139,7 +1129,6 @@ def detect_readline_curses(self):
1139
1129
readline_libs .append ('termcap' )
1140
1130
self .add (Extension ('readline' , ['readline.c' ],
1141
1131
library_dirs = ['/usr/lib/termcap' ],
1142
- extra_link_args = readline_extra_link_args ,
1143
1132
libraries = readline_libs ))
1144
1133
else :
1145
1134
self .missing .append ('readline' )
@@ -1603,16 +1592,6 @@ def detect_sqlite(self):
1603
1592
):
1604
1593
raise DistutilsError ("System version of SQLite does not support loadable extensions" )
1605
1594
1606
- if MACOS :
1607
- # In every directory on the search path search for a dynamic
1608
- # library and then a static library, instead of first looking
1609
- # for dynamic libraries on the entire path.
1610
- # This way a statically linked custom sqlite gets picked up
1611
- # before the dynamic library in /usr/lib.
1612
- sqlite_extra_link_args = ('-Wl,-search_paths_first' ,)
1613
- else :
1614
- sqlite_extra_link_args = ()
1615
-
1616
1595
include_dirs = ["Modules/_sqlite" ]
1617
1596
# Only include the directory where sqlite was found if it does
1618
1597
# not already exist in set include directories, otherwise you
@@ -1626,7 +1605,6 @@ def detect_sqlite(self):
1626
1605
define_macros = sqlite_defines ,
1627
1606
include_dirs = include_dirs ,
1628
1607
library_dirs = sqlite_libdir ,
1629
- extra_link_args = sqlite_extra_link_args ,
1630
1608
libraries = ["sqlite3" ,]))
1631
1609
else :
1632
1610
self .missing .append ('_sqlite3' )
@@ -1685,13 +1663,8 @@ def detect_compress_exts(self):
1685
1663
break
1686
1664
if version >= version_req :
1687
1665
if (self .compiler .find_library_file (self .lib_dirs , 'z' )):
1688
- if MACOS :
1689
- zlib_extra_link_args = ('-Wl,-search_paths_first' ,)
1690
- else :
1691
- zlib_extra_link_args = ()
1692
1666
self .add (Extension ('zlib' , ['zlibmodule.c' ],
1693
- libraries = ['z' ],
1694
- extra_link_args = zlib_extra_link_args ))
1667
+ libraries = ['z' ]))
1695
1668
have_zlib = True
1696
1669
else :
1697
1670
self .missing .append ('zlib' )
@@ -1706,24 +1679,16 @@ def detect_compress_exts(self):
1706
1679
if have_zlib :
1707
1680
extra_compile_args .append ('-DUSE_ZLIB_CRC32' )
1708
1681
libraries = ['z' ]
1709
- extra_link_args = zlib_extra_link_args
1710
1682
else :
1711
1683
libraries = []
1712
- extra_link_args = []
1713
1684
self .add (Extension ('binascii' , ['binascii.c' ],
1714
1685
extra_compile_args = extra_compile_args ,
1715
- libraries = libraries ,
1716
- extra_link_args = extra_link_args ))
1686
+ libraries = libraries ))
1717
1687
1718
1688
# Gustavo Niemeyer's bz2 module.
1719
1689
if (self .compiler .find_library_file (self .lib_dirs , 'bz2' )):
1720
- if MACOS :
1721
- bz2_extra_link_args = ('-Wl,-search_paths_first' ,)
1722
- else :
1723
- bz2_extra_link_args = ()
1724
1690
self .add (Extension ('_bz2' , ['_bz2module.c' ],
1725
- libraries = ['bz2' ],
1726
- extra_link_args = bz2_extra_link_args ))
1691
+ libraries = ['bz2' ]))
1727
1692
else :
1728
1693
self .missing .append ('_bz2' )
1729
1694
0 commit comments