@@ -305,31 +305,8 @@ def _init_posix():
305305 # On AIX, there are wrong paths to the linker scripts in the Makefile
306306 # -- these paths are relative to the Python source, but when installed
307307 # the scripts are in another directory.
308- if sys .platform == 'aix4' : # what about AIX 3.x ?
309- # Linker script is in the config directory, not in Modules as the
310- # Makefile says.
311- python_lib = get_python_lib (standard_lib = 1 )
312- ld_so_aix = os .path .join (python_lib , 'config' , 'ld_so_aix' )
313- python_exp = os .path .join (python_lib , 'config' , 'python.exp' )
314-
315- g ['LDSHARED' ] = "%s %s -bI:%s" % (ld_so_aix , g ['CC' ], python_exp )
316-
317- elif sys .platform == 'beos' :
318-
319- # Linker script is in the config directory. In the Makefile it is
320- # relative to the srcdir, which after installation no longer makes
321- # sense.
322- python_lib = get_python_lib (standard_lib = 1 )
323- linkerscript_name = os .path .basename (string .split (g ['LDSHARED' ])[0 ])
324- linkerscript = os .path .join (python_lib , 'config' , linkerscript_name )
325-
326- # XXX this isn't the right place to do this: adding the Python
327- # library to the link, if needed, should be in the "build_ext"
328- # command. (It's also needed for non-MS compilers on Windows, and
329- # it's taken care of for them by the 'build_ext.get_libraries()'
330- # method.)
331- g ['LDSHARED' ] = ("%s -L%s/lib -lpython%s" %
332- (linkerscript , PREFIX , sys .version [0 :3 ]))
308+ if python_build :
309+ g ['LDSHARED' ] = g ['BLDSHARED' ]
333310
334311 global _config_vars
335312 _config_vars = g
0 commit comments