Index: unixccompiler.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/distutils/unixccompiler.py,v retrieving revision 1.37 diff -c -d -r1.37 unixccompiler.py *** unixccompiler.py 2001/12/06 20:51:35 1.37 --- unixccompiler.py 2001/12/06 21:53:58 *************** *** 20,25 **** --- 20,26 ---- import string, re, os from types import * from copy import copy + from distutils import sysconfig from distutils.dep_util import newer from distutils.ccompiler import \ CCompiler, gen_preprocess_options, gen_lib_options *************** *** 249,255 **** return "-L" + dir def runtime_library_dir_option (self, dir): ! return "-R" + dir def library_option (self, lib): return "-l" + lib --- 250,260 ---- return "-L" + dir def runtime_library_dir_option (self, dir): ! compiler = os.path.basename(sysconfig.get_config_var("CC")) ! if compiler == "gcc" or compiler == "g++": ! return "-Wl,-R" + dir ! else: ! return "-R" + dir def library_option (self, lib): return "-l" + lib